projects
/
findit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed internal _new_page method
[findit]
/
src
/
files
/
search.py
diff --git
a/src/files/search.py
b/src/files/search.py
index
24e423b
..
11cb0cd
100755
(executable)
--- 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()
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
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)
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.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)
#==============================================================================
### out_submodule.Gtk_Presentation().show_results(results)
#==============================================================================