Add a style class to model buttons

This will let us stop using the class name in Adwaita, and will
help with some future additions.
This commit is contained in:
Matthias Clasen 2014-04-22 11:04:40 -04:00
parent 0940cbbeb9
commit 2b85d6c225

View File

@ -595,6 +595,7 @@ 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");
}
GtkWidget *