summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckbutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-02-20 10:45:07 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-02-20 10:54:48 -0500
commit7ed1225296b047e2ee86fe6c85d5e739922036fc (patch)
treecdf02a5212de3ae9b22b8a561451b801c71114cb /gtk/gtkcheckbutton.c
parentebff86d6f69ba3af6c847eb254d230db9ddad347 (diff)
downloadgtk+-7ed1225296b047e2ee86fe6c85d5e739922036fc.tar.gz
check button: Draw focus again
The box gadget now has API for this; use it.
Diffstat (limited to 'gtk/gtkcheckbutton.c')
-rw-r--r--gtk/gtkcheckbutton.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 1e397d4b43..dc899c9f35 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -314,6 +314,7 @@ gtk_check_button_init (GtkCheckButton *check_button)
widget_node = gtk_widget_get_css_node (GTK_WIDGET (check_button));
priv->gadget = gtk_box_gadget_new_for_node (widget_node, GTK_WIDGET (check_button));
gtk_box_gadget_set_orientation (GTK_BOX_GADGET (priv->gadget), GTK_ORIENTATION_HORIZONTAL);
+ gtk_box_gadget_set_draw_focus (GTK_BOX_GADGET (priv->gadget), TRUE);
priv->indicator_gadget = gtk_builtin_icon_new ("check",
GTK_WIDGET (check_button),
priv->gadget,