Skip to content

Commit

Permalink
Always show applet/desklet/extension metadata icon on the back button
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwebster committed Mar 7, 2013
1 parent 75a1f42 commit 297ca95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions files/usr/lib/cinnamon-settings/bin/XletSettings.py
Expand Up @@ -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..."))
Expand All @@ -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()
Expand Down
1 change: 0 additions & 1 deletion files/usr/lib/cinnamon-settings/bin/xlet-settings.ui
Expand Up @@ -48,7 +48,6 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="always_show_image">True</property>
</object>
<packing>
<property name="expand">False</property>
Expand Down

0 comments on commit 297ca95

Please sign in to comment.