From e6eefd3f2ba73b0574d02523704e33b8947eda0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 28 Jan 2011 10:26:52 +0100 Subject: [PATCH] Remove "GtkWarning: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed" --- tryton/gui/window/tree.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/tryton/gui/window/tree.py b/tryton/gui/window/tree.py index 424c24172b..58851f629d 100644 --- a/tryton/gui/window/tree.py +++ b/tryton/gui/window/tree.py @@ -190,20 +190,8 @@ class Tree(SignalEvent): ids.index(y['id']))) radiotb = None for res in results: - radiotb = gtk.RadioToolButton(group=radiotb) - radiotb.set_label_widget(gtk.Label(res['name'])) - - icon = gtk.Image() - try: - icon.set_from_stock(res[icon_name], - gtk.ICON_SIZE_BUTTON) - except Exception: - pass - - hbox = gtk.HBox(spacing=6) - hbox.pack_start(icon) - hbox.pack_start(gtk.Label(res['name'])) - radiotb.set_icon_widget(hbox) + radiotb = gtk.RadioToolButton(radiotb, res[icon_name]) + radiotb.set_label(res['name']) radiotb.show_all() radiotb.set_data('id', res['id']) radiotb.connect('clicked', self.menu_main_clicked)