From 3d31537da04f987e882e116fce6c0f8a7dd28ae9 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Fri, 27 Sep 2019 22:25:58 +0100 Subject: [PATCH] Applet: Fix compatibility with symbolic pngs See https://developer.gnome.org/gtk3/stable/gtk-encode-symbolic-svg.html Also properly set the icon size. --- usr/lib/linuxmint/mintMenu/mintMenu.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py index e7f695f..4df97b1 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenu.py +++ b/usr/lib/linuxmint/mintMenu/mintMenu.py @@ -483,8 +483,9 @@ class MenuWin(object): else: self.pixbuf = GdkPixbuf.Pixbuf.new_from_file(applet_icon) else: - if applet_icon.endswith("-symbolic"): - self.button_icon.set_from_icon_name(applet_icon, 22) + if applet_icon.endswith("symbolic"): + self.button_icon.set_from_icon_name(applet_icon, Gtk.IconSize.DIALOG) + self.button_icon.set_pixel_size(22) self.symbolic = True else: self.pixbuf = self.icon_theme.load_icon(applet_icon, 22 * self.scale, 0)