mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 08:40:08 +00:00
menuitem: mark with the GTK_STYLE_CLASS_MENUITEM style class
This commit is contained in:
parent
64aac9624c
commit
ee43f55b5f
@ -413,6 +413,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
|
||||
static void
|
||||
gtk_menu_item_init (GtkMenuItem *menu_item)
|
||||
{
|
||||
GtkStyleContext *context;
|
||||
GtkMenuItemPrivate *priv;
|
||||
|
||||
priv = G_TYPE_INSTANCE_GET_PRIVATE (menu_item,
|
||||
@ -437,6 +438,9 @@ gtk_menu_item_init (GtkMenuItem *menu_item)
|
||||
priv->use_action_appearance = TRUE;
|
||||
priv->timer = 0;
|
||||
priv->action = NULL;
|
||||
|
||||
context = gtk_widget_get_style_context (GTK_WIDGET (menu_item));
|
||||
gtk_style_context_add_class (context, GTK_STYLE_CLASS_MENUITEM);
|
||||
}
|
||||
|
||||
GtkWidget*
|
||||
|
Loading…
Reference in New Issue
Block a user