fix another deprecation warning (thanks to Tom Hughes)
This commit is contained in:
parent
e35b889f88
commit
9e07b3e092
@ -72,7 +72,8 @@ class ValidatedComboEntry(Gtk.ComboBox):
|
||||
# <hack description="set the GTK_ENTRY(self._entry)->is_cell_renderer
|
||||
# flag to TRUE in order to tell the entry to fill its allocation.">
|
||||
if Gtk.get_minor_version() < 13:
|
||||
dummy_event = Gdk.Event(Gdk.EventType.NOTHING)
|
||||
dummy_event = Gdk.Event()
|
||||
dummy_event.type = Gdk.EventType.NOTHING
|
||||
else:
|
||||
dummy_event = Gdk.Event()
|
||||
self._entry.start_editing(dummy_event)
|
||||
|
Loading…
Reference in New Issue
Block a user