From a98daed758d7c2e4114342c5c55f0ce0d36a5729 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 18 Oct 2015 16:53:39 -0700 Subject: [PATCH] fix another deprecation warning (thanks to Tom Hughes) --- gramps/gui/widgets/validatedcomboentry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/widgets/validatedcomboentry.py b/gramps/gui/widgets/validatedcomboentry.py index 175615b87..2ae77f52e 100644 --- a/gramps/gui/widgets/validatedcomboentry.py +++ b/gramps/gui/widgets/validatedcomboentry.py @@ -74,7 +74,8 @@ class ValidatedComboEntry(Gtk.ComboBox): # 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)