Use keyword argument model to instantiate ComboBoxEntry
Gtk+-3 supports only keyword arguments issue6588
This commit is contained in:
1 parent
cf66296f61
commit
2f587dd73a
1 file changed
+1
-1
@@ -31,7 +31,7 @@ class Revision(object):
|
||||
hbox.pack_start(label, expand=True, fill=True)
|
||||
list_store = gtk.ListStore(str, str)
|
||||
# Set model on instantiation to get the default cellrenderer as text
|
||||
combobox = gtk.ComboBoxEntry(list_store)
|
||||
combobox = gtk.ComboBoxEntry(model=list_store)
|
||||
self.entry = combobox.get_child()
|
||||
self.entry.connect('focus-out-event', self.focus_out)
|
||||
self.entry.connect('activate', self.activate)
|
||||
|
||||
Reference in new issue
Block a user