X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Ffiles%2Fsearch.py;h=11cb0cd59cdcfcf291f8811212c2154bb3506824;hb=73cefe83014c3f57dd45052d237b00a9db7f5efd;hp=24e423b33d91da8114edbe5e39e0543d27be62bc;hpb=a4cce219bfd94128e17bc8a1da559a505ecfe8d3;p=findit diff --git a/src/files/search.py b/src/files/search.py index 24e423b..11cb0cd 100755 --- a/src/files/search.py +++ b/src/files/search.py @@ -255,13 +255,6 @@ class Gtk_Presentation(object): self.statusbar.push(self.context_id, current_path) gtk.main_iteration() - def _new_page(self, child, title): - """Create new notebook page with search output.""" - pages = self.nb.notebook.get_n_pages() - self.nb.new_tab(child, title) - child.show_all() - self.nb.notebook.set_current_page(pages) - def run(self): pass @@ -269,10 +262,8 @@ class Gtk_Presentation(object): def show_out_toplevel(self, outtype, results): print 'Entering <' + outtype['name'] + '> output mode...' out_submodule = __import__('files.' + outtype['name'], None, None, outtype) - self.out_toplevel = out_submodule.Gtk_Presentation(results).toplevel - - self._new_page(self.out_toplevel, outtype['label']) + self.nb.new_tab(self.out_toplevel, outtype['label']) ### out_submodule.Gtk_Presentation().show_results(results) #==============================================================================