/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 branchbox.py

  • Committer: Curtis Hovey
  • Date: 2011-09-03 01:25:04 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110903012504-0jr4diz9033g5df2
Menu fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from bzrlib.plugins.gtk.history import UrlHistory
24
24
 
25
 
 
26
25
class BranchSelectionBox(Gtk.HBox):
27
26
 
28
27
    def __init__(self, path=None):
29
 
        super(BranchSelectionBox, self).__init__()
 
28
        Gtk.HBox.__init__(self)
30
29
        self._combo = Gtk.ComboBox.new_with_entry()
31
 
        self._combo.get_child().connect(
32
 
            'focus-out-event', self._on_combo_changed)
 
30
        self._combo.get_child().connect('focus-out-event', self._on_combo_changed)
33
31
 
34
32
        # Build branch history
35
33
        self._history = UrlHistory(GlobalConfig(), 'branch_history')
62
60
    def _on_combo_changed(self, widget, event):
63
61
        self.emit('branch-changed', widget)
64
62
 
65
 
 
66
63
GObject.signal_new('branch-changed', BranchSelectionBox,
67
64
                   GObject.SignalFlags.RUN_LAST,
68
65
                   None, (GObject.TYPE_OBJECT,))