diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-19 20:16:51 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-12-19 20:16:51 -0500 |
commit | 7aeb57cdfd1ee337c34d09f4e82050dbcb91da9b (patch) | |
tree | eea8f14a66bbf21bbdae0e84b1777e435e51b2f0 /gtk/gtkmodelbutton.c | |
parent | 0b7226e96eb5e52b24330a716287dd15de6047cf (diff) | |
download | gtk+-7aeb57cdfd1ee337c34d09f4e82050dbcb91da9b.tar.gz |
modelbutton: Hide checks initially
Manually constructed model buttons were always ending up
with a check. Fix that by hiding the indictator node initially.
Diffstat (limited to 'gtk/gtkmodelbutton.c')
-rw-r--r-- | gtk/gtkmodelbutton.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c index c7f22c55d2..32ef333abf 100644 --- a/gtk/gtkmodelbutton.c +++ b/gtk/gtkmodelbutton.c @@ -1212,6 +1212,7 @@ gtk_model_button_init (GtkModelButton *button) { GtkCssNode *widget_node; + button->role = GTK_BUTTON_ROLE_NORMAL; gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE); button->box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); gtk_widget_set_margin_start (button->box, 12); @@ -1243,6 +1244,7 @@ gtk_model_button_init (GtkModelButton *button) NULL); gtk_builtin_icon_set_default_size (GTK_BUILTIN_ICON (button->indicator_gadget), 16); update_node_ordering (button); + gtk_css_node_set_visible (gtk_css_gadget_get_node (button->indicator_gadget), FALSE); } /** |