changeset b68acf2ce753 in tryton:5.8
details: https://hg.tryton.org/tryton?cmd=changeset&node=b68acf2ce753
description:
Do not set toolbar style to page without toolbar
issue10676
review375241002
(grafted from d362c64c4ebde2e2ced292260782771105441c1f)
diffstat:
tryton/gui/main.py | 3 ++-
tryton/gui/window/infobar.py | 2 ++
2 files changed, 4 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r f7682f7f12cc -r b68acf2ce753 tryton/gui/main.py
--- a/tryton/gui/main.py Thu Sep 02 14:50:23 2021 +0200
+++ b/tryton/gui/main.py Thu Sep 02 23:12:06 2021 +0200
@@ -483,7 +483,8 @@
barstyle = Gtk.ToolbarStyle.ICONS
for page_idx in range(self.notebook.get_n_pages()):
page = self.get_page(page_idx)
- page.toolbar.set_style(barstyle)
+ if page.toolbar:
+ page.toolbar.set_style(barstyle)
def edit_limit(self):
from tryton.gui.window.limit import Limit
diff -r f7682f7f12cc -r b68acf2ce753 tryton/gui/window/infobar.py
--- a/tryton/gui/window/infobar.py Thu Sep 02 14:50:23 2021 +0200
+++ b/tryton/gui/window/infobar.py Thu Sep 02 23:12:06 2021 +0200
@@ -6,6 +6,8 @@
class InfoBar(object):
+ toolbar = None
+
def create_info_bar(self):
self.info_label = Gtk.Label()