changeset 3571cb8f5808 in tryton:5.2
details: https://hg.tryton.org/tryton?cmd=changeset;node=3571cb8f5808
description:
        Replace set_homogeneous by Gtk.Grid equivalent

        The container is a Gtk.Grid and no more a Gtk.Table since issue8139

        issue8423
        review263721002
        (grafted from 2155e8c720db2abdf20d733beaef7051c0a063cb)
diffstat:

 tryton/gui/window/view_board/view_board.py |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 27034d04fb31 -r 3571cb8f5808 tryton/gui/window/view_board/view_board.py
--- a/tryton/gui/window/view_board/view_board.py        Thu Jun 20 23:18:17 
2019 +0200
+++ b/tryton/gui/window/view_board/view_board.py        Thu Jun 20 23:19:41 
2019 +0200
@@ -114,7 +114,9 @@
 
     def _parse_group(self, node, container, attributes):
         group = self.parse(node)
-        group.container.set_homogeneous(attributes.get('homogeneous', False))
+        homogeneous = bool(attributes.get('homogeneous', False))
+        group.container.set_column_homogeneous(homogeneous)
+        group.container.set_row_homogeneous(homogeneous)
         frame = Gtk.Frame()
         frame.set_label(attributes.get('string'))
         if not attributes.get('string'):

Reply via email to