From 2caa71deeb5c3d70581c2220f08f351f81c09d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 13 Dec 2017 18:09:08 +0100 Subject: [PATCH] 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 --- tryton/gui/window/view_form/view/list.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py index e45f515840..595f07ed66 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -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