From 90d35cc678450c58798212aa7478d5fbb13c8944 Mon Sep 17 00:00:00 2001 From: Josip Date: Sun, 16 Nov 2014 16:53:13 +0100 Subject: [PATCH] 7857: gramps fails to start with gtk+-3.13.3 (Gdk.Event(Gdk.EventType.NOTHING) TypeError: function takes at most 0 arguments (1 given) --- gramps/gui/widgets/validatedcomboentry.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gui/widgets/validatedcomboentry.py b/gramps/gui/widgets/validatedcomboentry.py index 1052b2888..175615b87 100644 --- a/gramps/gui/widgets/validatedcomboentry.py +++ b/gramps/gui/widgets/validatedcomboentry.py @@ -73,7 +73,10 @@ class ValidatedComboEntry(Gtk.ComboBox): self._entry.set_width_chars(width) # - dummy_event = Gdk.Event(Gdk.EventType.NOTHING) + if Gtk.get_minor_version() < 13: + dummy_event = Gdk.Event(Gdk.EventType.NOTHING) + else: + dummy_event = Gdk.Event() self._entry.start_editing(dummy_event) # self.add(self._entry)