[gtk/no-emoji-insert] text: Respect no-emoji hint fully




commit 13f8eeb3ee679d13c98c68f035f41d5e780e71ed
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 70b100fa55..5eb216e14d 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -1487,13 +1487,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]