[gtk+/gtk-3-12] Rename the modelbutton style class



commit ee9454ce55295069f7ed079be54499598b508a5e
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Apr 27 18:48:06 2014 -0400

    Rename the modelbutton style class
    
    This is not a great name to use in themes; instead, add the
    menuitem class, so themes can use .button.menuitem for styles
    that are specific to menuitem-like buttons.

 gtk/gtkmodelbutton.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index f0e6244..dc70dd6 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -595,7 +595,8 @@ gtk_model_button_init (GtkModelButton *button)
   gtk_container_add (GTK_CONTAINER (button->box), button->image);
   gtk_container_add (GTK_CONTAINER (button->box), button->label);
   gtk_container_add (GTK_CONTAINER (button), button->box);
-  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (button)), "modelbutton");
+  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (button)),
+                               GTK_STYLE_CLASS_MENUITEM);
 }
 
 GtkWidget *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]