/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:52:31 UTC
  • Revision ID: jelmer@samba.org-20080701145231-dxgzwwypmhjo53lr
Switch to found revision when clicking ok in search window.

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
        except ImportError:
235
235
            mutter("Didn't find search plugin")
236
236
        else:
 
237
            branch_menu.add(gtk.SeparatorMenuItem())
 
238
 
237
239
            branch_index_menuitem = gtk.MenuItem("_Index")
238
240
            branch_index_menuitem.connect('activate', self._branch_index_cb)
239
241
            branch_menu.add(branch_index_menuitem)
476
478
 
477
479
    def _branch_search_cb(self, w):
478
480
        from bzrlib.plugins.gtk.search import SearchDialog
479
 
        SearchDialog(self.branch).run()
 
481
        dialog = SearchDialog(self.branch)
 
482
        
 
483
        if dialog.run() == gtk.RESPONSE_OK:
 
484
            self.set_revision(dialog.get_revision())
 
485
 
 
486
        dialog.destroy()
480
487
 
481
488
    def _about_dialog_cb(self, w):
482
489
        from bzrlib.plugins.gtk.about import AboutDialog