[gtk/shortcuts-rebased-again: 121/129] text: Stop using keybinding signals internally



commit f53d06c35751f8a406ca17e82f955783a9be8830
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 21 21:03:25 2019 +0000

    text: Stop using keybinding signals internally
    
    We can just call the class handlers.

 gtk/gtktext.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 2621946a77..7619e5fca6 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -5734,7 +5734,7 @@ gtk_text_activate_clipboard_cut (GtkWidget  *widget,
                                  GVariant   *parameter)
 {
   GtkText *self = GTK_TEXT (widget);
-  g_signal_emit_by_name (self, "cut-clipboard");
+  gtk_text_cut_clipboard (self);
   hide_selection_bubble (self);
 }
 
@@ -5744,7 +5744,7 @@ gtk_text_activate_clipboard_copy (GtkWidget  *widget,
                                   GVariant   *parameter)
 {
   GtkText *self = GTK_TEXT (widget);
-  g_signal_emit_by_name (self, "copy-clipboard");
+  gtk_text_copy_clipboard (self);
   hide_selection_bubble (self);
 }
 
@@ -5754,7 +5754,7 @@ gtk_text_activate_clipboard_paste (GtkWidget  *widget,
                                    GVariant   *parameter)
 {
   GtkText *self = GTK_TEXT (widget);
-  g_signal_emit_by_name (self, "paste-clipboard");
+  gtk_text_paste_clipboard (self);
   hide_selection_bubble (self);
 }
 


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