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-10-31 13:40:29 +01:00
parent e6d35b8cbd
commit 12ed5deb24

View File

@ -73,7 +73,10 @@ class ValidatedComboEntry(Gtk.ComboBox):
self._entry.set_width_chars(width)
# <hack description="set the GTK_ENTRY(self._entry)->is_cell_renderer
# 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)
# </hack>
self.add(self._entry)