[gtk: 3/4] combo_box: Use mnemonic_activate on override




commit 0aa3a7e71c25f9ecdbac8e762a2e5187d122436c
Author: Maximiliano Sandoval R <msandova gnome org>
Date:   Sun Oct 3 18:00:23 2021 +0200

    combo_box: Use mnemonic_activate on override
    
    This is changing the existing behavior where the mnemonic activation
    would just grab the focus of the button, this was the behavior in GTK 3.

 gtk/gtkcombobox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index f007d841f9..c29896319e 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -2304,7 +2304,7 @@ gtk_combo_box_mnemonic_activate (GtkWidget *widget,
         gtk_widget_grab_focus (priv->child);
     }
   else
-    gtk_widget_grab_focus (priv->button);
+    gtk_widget_mnemonic_activate (priv->button, group_cycling);
 
   return TRUE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]