/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-08-12 19:50:45 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110812195045-y86bmaibs3pw5w6d
Updated buffer.getText() calls and ModifierType enums.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
class BranchSelectionBox(Gtk.HBox):
26
26
 
27
27
    def __init__(self, path=None):
28
 
        Gtk.HBox.__init__(self)
29
 
        self._combo = Gtk.ComboBox.new_with_entry()
 
28
        GObject.GObject.__init__(self)
 
29
        self._combo = Gtk.ComboBoxEntry()
30
30
        self._combo.get_child().connect('focus-out-event', self._on_combo_changed)
31
31
 
32
32
        # Build branch history
55
55
            self._combo_model.append([ item ])
56
56
 
57
57
        self._combo.set_model(self._combo_model)
58
 
        self._combo.set_entry_text_column(0)
 
58
        self._combo.set_text_column(0)
59
59
 
60
60
    def _on_combo_changed(self, widget, event):
61
61
        self.emit('branch-changed', widget)