/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-05 03:44:26 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110905034426-p98pxnay9rmzkr99
Fix the initializer for many classes.
Replace Gtk.Dialog.vbox with .get_content_area().

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
 
25
26
class BranchSelectionBox(Gtk.HBox):
26
27
 
27
28
    def __init__(self, path=None):
28
 
        Gtk.HBox.__init__(self)
 
29
        super(BranchSelectionBox, self).__init__()
29
30
        self._combo = Gtk.ComboBox.new_with_entry()
30
 
        self._combo.get_child().connect('focus-out-event', self._on_combo_changed)
 
31
        self._combo.get_child().connect(
 
32
            'focus-out-event', self._on_combo_changed)
31
33
 
32
34
        # Build branch history
33
35
        self._history = UrlHistory(GlobalConfig(), 'branch_history')
60
62
    def _on_combo_changed(self, widget, event):
61
63
        self.emit('branch-changed', widget)
62
64
 
 
65
 
63
66
GObject.signal_new('branch-changed', BranchSelectionBox,
64
67
                   GObject.SignalFlags.RUN_LAST,
65
68
                   None, (GObject.TYPE_OBJECT,))