menuitem: mark with the GTK_STYLE_CLASS_MENUITEM style class

This commit is contained in:
Cosimo Cecchi 2011-03-01 22:33:15 -05:00
parent 64aac9624c
commit ee43f55b5f

View File

@ -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*