Skip to content

Commit c2d7d28

Browse files
committed
mate-xapp-status-applet.py: Don't use theme.has_icon() - not all
usable icons are in themes. Icon files in /usr/share/xpm will not show up in theme.has_icon(), but will still be found when creating a GtkThemedIcon (or otherwise using the icon name). There's not much point in this check anyhow - if the icon really doesn't exist, there will still be a fallback icon shown. Fixes linuxmint/mint-x-icons#209.
1 parent 0bd3683 commit c2d7d28

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

status-applets/mate/mate-xapp-status-applet.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,8 @@ def set_icon(self, string):
197197
icon = Gio.FileIcon.new(icon_file)
198198
self.image.set_from_gicon(icon, Gtk.IconSize.MENU)
199199
else:
200-
if self.theme.has_icon(string):
201-
icon = Gio.ThemedIcon.new(string)
202-
self.image.set_from_gicon(icon, Gtk.IconSize.MENU)
200+
icon = Gio.ThemedIcon.new(string)
201+
self.image.set_from_gicon(icon, Gtk.IconSize.MENU)
203202

204203
fallback = False
205204
except GLib.Error as e:

0 commit comments

Comments
 (0)