summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-05-16 11:41:38 +0200
committerraveit65 <[email protected]>2018-05-16 11:41:38 +0200
commita386cd65925199e5c1f76012ac4fdc5b35b4472f (patch)
tree0f3220968b1df1d969717b5a73f4d5967aaf4829 /plugins
parent0f327170ef19d5af67f48fd1f9e7e623e326ff30 (diff)
downloadmate-settings-daemon-a386cd65925199e5c1f76012ac4fdc5b35b4472f.tar.bz2
mate-settings-daemon-a386cd65925199e5c1f76012ac4fdc5b35b4472f.tar.xz
xrandr-applet: add a style class for menuitems
Diffstat (limited to 'plugins')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c7
1 files 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);