From 65d365ef86025402ec104fce496e981a4f4db200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 7 Feb 2016 16:12:26 +0100 Subject: [PATCH] Force CellRendererToggle to not be activatable on non-editable tree issue5305 review15991002 --- tryton/gui/window/view_form/view/list_gtk/widget.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tryton/gui/window/view_form/view/list_gtk/widget.py b/tryton/gui/window/view_form/view/list_gtk/widget.py index cdf3400a17..875a1a23cd 100644 --- a/tryton/gui/window/view_form/view/list_gtk/widget.py +++ b/tryton/gui/window/view_form/view/list_gtk/widget.py @@ -235,6 +235,9 @@ class GenericText(Cell): pass else: cell.set_property('editable', not readonly) + else: + if isinstance(cell, CellRendererToggle): + cell.set_property('activatable', False) cell.set_property('xalign', align)