Fix ToolComboEntry for Gtk method not supported on older Gtk
This commit is contained in:
parent
f603f24bbd
commit
28850728af
@ -61,7 +61,10 @@ class ToolComboEntry(ValueToolItem):
|
||||
self.set_expand(False)
|
||||
|
||||
combo = ShortlistComboEntry(items, shortlist, validator)
|
||||
Gtk.Widget.set_focus_on_click(combo, False)
|
||||
if (Gtk.MAJOR_VERSION, Gtk.MINOR_VERSION) < (3, 20):
|
||||
combo.set_focus_on_click(False)
|
||||
else:
|
||||
Gtk.Widget.set_focus_on_click(combo, False)
|
||||
combo.set_entry_editable(editable)
|
||||
combo.show()
|
||||
self.add(combo)
|
||||
|
Loading…
Reference in New Issue
Block a user