From a386cd65925199e5c1f76012ac4fdc5b35b4472f Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 16 May 2018 11:41:38 +0200 Subject: xrandr-applet: add a style class for menuitems --- plugins/xrandr/msd-xrandr-manager.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c index e1b9986..77ddcd2 100644 --- a/plugins/xrandr/msd-xrandr-manager.c +++ b/plugins/xrandr/msd-xrandr-manager.c @@ -1714,11 +1714,14 @@ title_item_size_allocate_cb (GtkWidget *widget, GtkAllocation *allocation, gpoin static GtkWidget * make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *output) { - GtkWidget *item; - GtkWidget *label; + GtkWidget *item; + GtkStyleContext *context; + GtkWidget *label; char *str; item = gtk_menu_item_new (); + context = gtk_widget_get_style_context (item); + gtk_style_context_add_class (context, "xrandr-applet"); g_signal_connect (item, "size-allocate", G_CALLBACK (title_item_size_allocate_cb), NULL); -- cgit v1.2.1