diff options
author | lukefromdc <[email protected]> | 2018-05-18 01:53:38 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-05-18 01:53:38 -0400 |
commit | 57b6fa4e37afa3449208abf6578bfc5a773c60b2 (patch) | |
tree | 3d99ec96af5f0cf1be2df38bbad024c353361299 /plugins/xrandr/msd-xrandr-manager.c | |
parent | a386cd65925199e5c1f76012ac4fdc5b35b4472f (diff) | |
download | mate-settings-daemon-57b6fa4e37afa3449208abf6578bfc5a773c60b2.tar.bz2 mate-settings-daemon-57b6fa4e37afa3449208abf6578bfc5a773c60b2.tar.xz |
xrandr applet popup: add monitor icons to monitor label menuitems
Diffstat (limited to 'plugins/xrandr/msd-xrandr-manager.c')
-rw-r--r-- | plugins/xrandr/msd-xrandr-manager.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c index 77ddcd2..ea5446e 100644 --- a/plugins/xrandr/msd-xrandr-manager.c +++ b/plugins/xrandr/msd-xrandr-manager.c @@ -1717,9 +1717,13 @@ make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *ou GtkWidget *item; GtkStyleContext *context; GtkWidget *label; + GtkWidget *image; + GtkWidget *box; char *str; item = gtk_menu_item_new (); + box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); + image = gtk_image_new_from_icon_name ("computer-symbolic", GTK_ICON_SIZE_MENU); context = gtk_widget_get_style_context (item); gtk_style_context_add_class (context, "xrandr-applet"); @@ -1739,7 +1743,9 @@ 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 (item), label); + gtk_container_add (GTK_CONTAINER (box), image); + gtk_container_add (GTK_CONTAINER (box), label); + gtk_container_add (GTK_CONTAINER (item), box); gtk_widget_set_sensitive (item, FALSE); /* the title is not selectable */ gtk_widget_show_all (item); |