summaryrefslogtreecommitdiff
path: root/plugins/xrandr/msd-xrandr-manager.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-05-23 22:48:21 -0400
committerlukefromdc <[email protected]>2018-05-23 22:48:21 -0400
commit05d1d3ca7fedda82eff13abffd085235d2440797 (patch)
treea227a8393b8faeaa8b006d862111d539cfbd4328 /plugins/xrandr/msd-xrandr-manager.c
parent06306441a0ee70ac79a9136a40d8e2ef365d31a2 (diff)
downloadmate-settings-daemon-05d1d3ca7fedda82eff13abffd085235d2440797.tar.bz2
mate-settings-daemon-05d1d3ca7fedda82eff13abffd085235d2440797.tar.xz
xrandr-applet-popup: show icon only if "menus-have-icons" is not turned off
Diffstat (limited to 'plugins/xrandr/msd-xrandr-manager.c')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index 4222923..7cdaf69 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -1725,6 +1725,7 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
GdkRGBA color;
gchar *css, *color_string, *theme_name;
GtkSettings *settings;
+ GSettings *icon_settings;
struct MsdXrandrManagerPrivate *priv = manager->priv;
@@ -1750,7 +1751,11 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
gtk_widget_set_margin_top (label, OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING);
gtk_widget_set_margin_bottom (label, OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING);
- gtk_container_add (GTK_CONTAINER (box), image);
+ /*Load the icon unless the user has icons in menus turned off*/
+ icon_settings = g_settings_new ("org.mate.interface");
+ if (g_settings_get_boolean (icon_settings, "menus-have-icons")){
+ gtk_container_add (GTK_CONTAINER (box), image);
+ }
gtk_container_add (GTK_CONTAINER (box), label);
gtk_container_add (GTK_CONTAINER (item), box);