[gtk+] menuitem: mark with the GTK_STYLE_CLASS_MENUITEM style class
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] menuitem: mark with the GTK_STYLE_CLASS_MENUITEM style class
- Date: Thu, 3 Mar 2011 22:49:45 +0000 (UTC)
commit ee43f55b5f416d787bf998bfeae116e9a0335e89
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Mar 1 22:33:15 2011 -0500
menuitem: mark with the GTK_STYLE_CLASS_MENUITEM style class
gtk/gtkmenuitem.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index 6194ee5..5692900 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -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*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]