fix another deprecation warning (thanks to Tom Hughes)

This commit is contained in:
Paul Franklin 2015-10-18 16:54:11 -07:00
parent e35b889f88
commit 9e07b3e092

View File

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