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