[gtk/shortcuts-rebased-again: 132/145] text: Stop using keybinding signals internally



commit b0f2907cd43bbd5c7d1ae64f4c1bc2d1ec131e51
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 9f19929f4e..47d14945b0 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -5702,7 +5702,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);
 }
 
@@ -5712,7 +5712,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);
 }
 
@@ -5722,7 +5722,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]