7857: gramps fails to start with gtk+-3.13.3 (Gdk.Event(Gdk.EventType.NOTHING)

TypeError: function takes at most 0 arguments (1 given)
This commit is contained in:
Josip 2014-11-16 16:53:13 +01:00
parent 2264f5506a
commit 90d35cc678

View File

@ -73,7 +73,10 @@ class ValidatedComboEntry(Gtk.ComboBox):
self._entry.set_width_chars(width) self._entry.set_width_chars(width)
# <hack description="set the GTK_ENTRY(self._entry)->is_cell_renderer # <hack description="set the GTK_ENTRY(self._entry)->is_cell_renderer
# flag to TRUE in order to tell the entry to fill its allocation."> # flag to TRUE in order to tell the entry to fill its allocation.">
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._entry.start_editing(dummy_event)
# </hack> # </hack>
self.add(self._entry) self.add(self._entry)