From 35b329409e85e0c7e5fd9e199a9ae87048c422c0 Mon Sep 17 00:00:00 2001 From: nikosapi Date: Sat, 27 Sep 2008 11:50:08 -0400 Subject: [PATCH] Workaround for gtk.ImageMenuItem on Ubuntu 8.10 gui.py: Don't use the get_children function, instead use get_child for the gtk.AccelLabel and get_image for the gtk.Image --- src/gpodder/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpodder/gui.py b/src/gpodder/gui.py index 41b6ac58..9e3ef579 100644 --- a/src/gpodder/gui.py +++ b/src/gpodder/gui.py @@ -1048,10 +1048,10 @@ class gPodder(GladeWidget): return True def change_menu_item(self, menuitem, icon=None, label=None): - (label_widget, icon_widget) = menuitem.get_children() if icon is not None: - icon_widget.set_from_icon_name(icon, gtk.ICON_SIZE_MENU) + menuitem.get_image().set_from_icon_name(icon, gtk.ICON_SIZE_MENU) if label is not None: + label_widget = menuitem.get_child() label_widget.set_text(label) def play_or_download(self): -- 2.11.4.GIT