[gtk/focusable-fixes: 3/5] togglebutton: Fix mnemonic activation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/focusable-fixes: 3/5] togglebutton: Fix mnemonic activation
- Date: Sun, 23 May 2021 14:41:09 +0000 (UTC)
commit 65556656c47d7f5e8fb7c2fe00154ae7f370bab9
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 23 10:26:21 2021 -0400
togglebutton: Fix mnemonic activation
We want to grab the focus when we're focusable, so
look at the focusable property.
gtk/gtktogglebutton.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index 3a24a0c314..4ea135ee48 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -184,7 +184,7 @@ gtk_toggle_button_mnemonic_activate (GtkWidget *widget,
* gtk_widget_real_mnemonic_activate() in order to focus the widget even
* if there is no mnemonic conflict.
*/
- if (gtk_widget_get_can_focus (widget))
+ if (gtk_widget_get_focusable (widget))
gtk_widget_grab_focus (widget);
if (!group_cycling)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]