From 297ca956e619bf056c3e11ac488650b05ada6e10 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Tue, 19 Feb 2013 21:02:57 -0500 Subject: [PATCH] Always show applet/desklet/extension metadata icon on the back button --- files/usr/lib/cinnamon-settings/bin/XletSettings.py | 5 +++++ files/usr/lib/cinnamon-settings/bin/xlet-settings.ui | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/files/usr/lib/cinnamon-settings/bin/XletSettings.py b/files/usr/lib/cinnamon-settings/bin/XletSettings.py index 1664fb5f26..d54a9c9092 100755 --- a/files/usr/lib/cinnamon-settings/bin/XletSettings.py +++ b/files/usr/lib/cinnamon-settings/bin/XletSettings.py @@ -41,6 +41,7 @@ def __init__(self, uuid, parent, _type): if "icon" in self.applet_meta: image = Gtk.Image().new_from_icon_name(self.applet_meta["icon"], Gtk.IconSize.BUTTON) self.back_to_list_button.set_image(image) + self.back_to_list_button.get_property('image').set_padding(5, 0) self.back_to_list_button.set_label(self.applet_meta["name"]) self.back_to_list_button.set_tooltip_text(_("Back to list")) self.more_button.set_tooltip_text(_("More actions...")) @@ -61,6 +62,10 @@ def __init__(self, uuid, parent, _type): def show (self): self.content.show_all() + try: + self.back_to_list_button.get_property('image').show() + except: + pass def on_hide (self, widget): self.content.hide() diff --git a/files/usr/lib/cinnamon-settings/bin/xlet-settings.ui b/files/usr/lib/cinnamon-settings/bin/xlet-settings.ui index b6077933c6..3df467abd7 100644 --- a/files/usr/lib/cinnamon-settings/bin/xlet-settings.ui +++ b/files/usr/lib/cinnamon-settings/bin/xlet-settings.ui @@ -48,7 +48,6 @@ True True True - True False