/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to viz/branchwin.py

  • Committer: Jelmer Vernooij
  • Date: 2008-07-01 14:06:55 UTC
  • Revision ID: jelmer@samba.org-20080701140655-x5vui3c95jpwzjtc
Add search dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
            branch_index_menuitem.connect('activate', self._branch_index_cb)
239
239
            branch_menu.add(branch_index_menuitem)
240
240
 
 
241
            branch_search_menuitem = gtk.MenuItem("_Search")
 
242
            branch_search_menuitem.connect('activate', self._branch_search_cb)
 
243
            branch_menu.add(branch_search_menuitem)
 
244
 
241
245
        help_menu = gtk.Menu()
242
246
        help_menuitem = gtk.MenuItem("_Help")
243
247
        help_menuitem.set_submenu(help_menu)
470
474
        from bzrlib.plugins.search import index as _mod_index
471
475
        _mod_index.index_url(self.branch.base)
472
476
 
 
477
    def _branch_search_cb(self, w):
 
478
        from bzrlib.plugins.gtk.search import SearchDialog
 
479
        SearchDialog(self).run()
 
480
 
473
481
    def _about_dialog_cb(self, w):
474
482
        from bzrlib.plugins.gtk.about import AboutDialog
475
483