Fix ToolComboEntry for Gtk method not supported on older Gtk

This commit is contained in:
prculley 2017-02-25 08:41:01 -06:00
parent f603f24bbd
commit 28850728af

View File

@ -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)