Remove "GtkWarning: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed"
This commit is contained in:
1 parent
42752f94f5
commit
e6eefd3f2b
1 file changed
+2
-14
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user