diff options
Diffstat (limited to 'gtk/gtkcheckbutton.c')
-rw-r--r-- | gtk/gtkcheckbutton.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index 7b45cdf91f..b639f78faa 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -481,16 +481,15 @@ gtk_check_button_focus (GtkWidget *widget, } } + g_ptr_array_free (child_array, TRUE); - if (new_focus) + if (new_focus && new_focus != widget) { gtk_widget_grab_focus (new_focus); gtk_widget_activate (new_focus); + return TRUE; } - - g_ptr_array_free (child_array, TRUE); - - return TRUE; + return FALSE; } else { @@ -673,6 +672,9 @@ gtk_check_button_class_init (GtkCheckButtonClass *class) * Applications should never connect to this signal, but use the * [signal@Gtk.CheckButton::toggled] signal. * + * The default bindings for this signal are all forms of the + * <kbd>␣</kbd> and <kbd>Enter</kbd> keys. + * * Since: 4.2 */ signals[ACTIVATE] = |