Skip to content

Commit 05d1d3c

Browse files
committed
xrandr-applet-popup: show icon only if "menus-have-icons" is not turned off
1 parent 0630644 commit 05d1d3c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎plugins/xrandr/msd-xrandr-manager.c‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,6 +1725,7 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
17251725
GdkRGBA color;
17261726
gchar *css, *color_string, *theme_name;
17271727
GtkSettings *settings;
1728+
GSettings *icon_settings;
17281729

17291730
struct MsdXrandrManagerPrivate *priv = manager->priv;
17301731

@@ -1750,7 +1751,11 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
17501751
gtk_widget_set_margin_top (label, OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING);
17511752
gtk_widget_set_margin_bottom (label, OUTPUT_TITLE_ITEM_BORDER + OUTPUT_TITLE_ITEM_PADDING);
17521753

1753-
gtk_container_add (GTK_CONTAINER (box), image);
1754+
/*Load the icon unless the user has icons in menus turned off*/
1755+
icon_settings = g_settings_new ("org.mate.interface");
1756+
if (g_settings_get_boolean (icon_settings, "menus-have-icons")){
1757+
gtk_container_add (GTK_CONTAINER (box), image);
1758+
}
17541759
gtk_container_add (GTK_CONTAINER (box), label);
17551760
gtk_container_add (GTK_CONTAINER (item), box);
17561761

0 commit comments

Comments
 (0)