Please review this at http://codereview.appspot.com/4025045/
It change the alignment of the menu button but it seems that it is not allowed
to define aligment on this kind of button.
Affected files:
M tryton/gui/window/tree.py
Index: tryton/gui/window/tree.py
===================================================================
--- a/tryton/gui/window/tree.py
+++ b/tryton/gui/window/tree.py
@@ -190,20 +190,8 @@
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)
--
Cédric Krier
B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/
pgpbGhOYcWQyp.pgp
Description: PGP signature
