Replace re-emit button-press-event by call to row_active

In GTK+-3, the introspection fails to convert the union EventButton into
GdkEvent.

issue6994
review39941002
This commit is contained in:
Cédric Krier committed 2017-12-13 18:09:08 +01:00
1 parent e87090ca07
commit 2caa71deeb
1 file changed
+2 -3
+2 -3
View File
@@ -926,9 +926,8 @@ class ViewTree(View):
gobject.idle_add(pop, menu, group, record)
return True # Don't change the selection
elif event.button == 2:
event.button = 1
event.state |= gtk.gdk.MOD1_MASK
treeview.emit('button-press-event', event)
with Window(allow_similar=True):
self.screen.row_activate()
return True
return False