Force CellRendererToggle to not be activatable on non-editable tree

issue5305
review15991002
This commit is contained in:
Cédric Krier committed 2016-02-07 16:12:26 +01:00
1 parent 579b63ed1d
commit 65d365ef86
1 file changed
+3
@@ -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)