Skip to content

Commit

Permalink
xrandr-applet-popup: show icon only if "menus-have-icons" is not turn…
Browse files Browse the repository at this point in the history
…ed off
  • Loading branch information
lukefromdc committed May 24, 2018
1 parent 0630644 commit 05d1d3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/xrandr/msd-xrandr-manager.c
Expand Up @@ -1725,6 +1725,7 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou
GdkRGBA color; GdkRGBA color;
gchar *css, *color_string, *theme_name; gchar *css, *color_string, *theme_name;
GtkSettings *settings; GtkSettings *settings;
GSettings *icon_settings;


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


Expand All @@ -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_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_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 (box), label);
gtk_container_add (GTK_CONTAINER (item), box); gtk_container_add (GTK_CONTAINER (item), box);


Expand Down

0 comments on commit 05d1d3c

Please sign in to comment.