[gtk+/gtk-3-12] Add a style class to model buttons
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-12] Add a style class to model buttons
- Date: Tue, 22 Apr 2014 15:10:46 +0000 (UTC)
commit f8aab7f3417161aec0bd2bd432b2685c46043afe
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Apr 22 11:09:46 2014 -0400
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.
gtk/gtkmodelbutton.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index 0787e04..f0e6244 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]