[gtk/gtk46-backports: 1/2] text: Respect no-emoji hint fully




commit 317d4c8f8de943f2e36f73fc7207f0147a1667f5
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Aug 21 16:29:41 2022 -0400

    text: Respect no-emoji hint fully
    
    We were disabling the insert-emoji action when the
    no-emoji input hint is set, but the Ctrl-. shortcut
    was bypassing the action and kept working. Make
    the shortcut activate the action instead.
    
    Fixes: #5123

 gtk/gtktext.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 124e2feac2..14e2e920d8 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -1523,13 +1523,13 @@ gtk_text_class_init (GtkTextClass *class)
                                        NULL);
 
   /* Emoji */
-  gtk_widget_class_add_binding_signal (widget_class,
+  gtk_widget_class_add_binding_action (widget_class,
                                        GDK_KEY_period, GDK_CONTROL_MASK,
-                                       "insert-emoji",
+                                       "misc.insert-emoji",
                                        NULL);
-  gtk_widget_class_add_binding_signal (widget_class,
+  gtk_widget_class_add_binding_action (widget_class,
                                        GDK_KEY_semicolon, GDK_CONTROL_MASK,
-                                       "insert-emoji",
+                                       "misc.insert-emoji",
                                        NULL);
 
   /* Undo/Redo */


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