~gustav-hartvigsson/bzr-gtk/fix-viz

« back to all changes in this revision

Viewing changes to branch.py

  • Committer: Jelmer Vernooij
  • Date: 2007-05-19 16:21:10 UTC
  • mfrom: (195.1.7 trunk)
  • Revision ID: jelmer@samba.org-20070519162110-qw0pkevul1iet036
MergeĀ upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        # Set callbacks
64
64
        self._button_branch.connect('clicked', self._on_branch_clicked)
65
65
        self._button_revision.connect('clicked', self._on_revision_clicked)
66
 
        self._combo.connect('changed', self._on_combo_changed)
 
66
        self._combo.child.connect('focus-out-event', self._on_combo_changed)
67
67
        
68
68
        # Create the table and pack the widgets into it
69
69
        self._table = gtk.Table(rows=3, columns=2)
197
197
        
198
198
        self.response(gtk.RESPONSE_OK)
199
199
    
200
 
    def _on_combo_changed(self, widget):
 
200
    def _on_combo_changed(self, widget, event):
201
201
        """ We try to get the last revision if focus lost. """
 
202
        print "DEBUG: combo changed."
202
203
        rev = self._get_last_revno()
203
204
        if rev is None:
204
205
            self._entry_revision.set_text(_('N/A'))