mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
menuitem: set the menubar style class for menu items on a bar
So that themes can distinguish them from the other menu items.
This commit is contained in:
parent
4a99e75ce7
commit
fe3f9ca9cd
@ -1594,6 +1594,9 @@ gtk_menu_item_draw (GtkWidget *widget,
|
||||
|
||||
gtk_style_context_get_padding (context, state, &padding);
|
||||
|
||||
if (GTK_IS_MENU_BAR (parent))
|
||||
gtk_style_context_add_class (context, GTK_STYLE_CLASS_MENUBAR);
|
||||
|
||||
if (child && (state & GTK_STATE_FLAG_PRELIGHT))
|
||||
{
|
||||
gtk_render_background (context, cr, x, y, w, h);
|
||||
|
Loading…
Reference in New Issue
Block a user