From 5ca1fb1a1b34bdbaf0c966d9cc786ecf71d0df21 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Thu, 21 Jun 2018 18:35:13 -0400 Subject: Panel-gtk.c: Show menu icons only when "menus-have-icons" is set Most panel menus excluding main menus. Bind gsettings preference "menus have icons" to visibility of icon. Pack the icon into a box with a 16px min-width set in panel.css to hold the space when the icons are not shown Duplicate as much as possible behavior of now-deprecated GtkImageMenuItem replaced by github.com/mate-desktop/mate-panel/commit/86701517e7d7cb3d2c08a40d76af97308f18902c Use only one icon-settings gsettings object to control this in all menuitems controlled by panel-gtk.c The use of a single gsettings object is based on code by Albert Muktupavels https://github.com/muktupavels --- data/theme/mate-panel.css | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data') diff --git a/data/theme/mate-panel.css b/data/theme/mate-panel.css index bfa890d1..e53950d2 100644 --- a/data/theme/mate-panel.css +++ b/data/theme/mate-panel.css @@ -8,3 +8,6 @@ MatePanelAppletFrameDBus > MatePanelAppletFrameDBus { background-size: 12px 22px; } +.mate-panel-menu-icon-box{ + min-width: 16px; +} -- cgit v1.2.1