Skip to content

Commit a386cd6

Browse files
author
raveit65
committed
xrandr-applet: add a style class for menuitems
1 parent 0f32717 commit a386cd6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugins/xrandr/msd-xrandr-manager.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,11 +1714,14 @@ title_item_size_allocate_cb (GtkWidget *widget, GtkAllocation *allocation, gpoin
17141714
static GtkWidget *
17151715
make_menu_item_for_output_title (MsdXrandrManager *manager, MateRROutputInfo *output)
17161716
{
1717-
GtkWidget *item;
1718-
GtkWidget *label;
1717+
GtkWidget *item;
1718+
GtkStyleContext *context;
1719+
GtkWidget *label;
17191720
char *str;
17201721

17211722
item = gtk_menu_item_new ();
1723+
context = gtk_widget_get_style_context (item);
1724+
gtk_style_context_add_class (context, "xrandr-applet");
17221725

17231726
g_signal_connect (item, "size-allocate",
17241727
G_CALLBACK (title_item_size_allocate_cb), NULL);

0 commit comments

Comments
 (0)