changeset 0bed8c0a3480 in tryton:5.4
details: https://hg.tryton.org/tryton?cmd=changeset;node=0bed8c0a3480
description:
        Set margin on main notebook widget

        It is needed to have some spaces between the pane handle and the start 
of the
        TreeView otherwise it is not possible to change the size of the first 
column if
        it was reduced to 1 pixel.

        issue9074
        review268951002
        (grafted from f868fa0de64031907ef926b409ac9aa595ad49bd)
diffstat:

 tryton/gui/main.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r d21a586a553c -r 0bed8c0a3480 tryton/gui/main.py
--- a/tryton/gui/main.py        Mon Mar 09 18:31:01 2020 +0100
+++ b/tryton/gui/main.py        Sat Feb 29 01:04:40 2020 +0100
@@ -852,6 +852,7 @@
         hbox.show_all()
         label_menu = Gtk.Label(
             label=page.name, halign=Gtk.Align.START)
+        page.widget.props.margin = 3
         self.notebook.insert_page_menu(page.widget, hbox, label_menu, page_id)
         self.notebook.set_tab_reorderable(page.widget, True)
         self.notebook.set_current_page(page_id)

Reply via email to