[gtk+] text handler: Stop using GtkWidget::event



commit 74f563b50136c72e021f68a3f0256ed5cad69d01
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Dec 30 22:38:14 2017 -0500

    text handler: Stop using GtkWidget::event
    
    This signal is going away.

 gtk/gtktexthandle.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktexthandle.c b/gtk/gtktexthandle.c
index ff16630..68d18dd 100644
--- a/gtk/gtktexthandle.c
+++ b/gtk/gtktexthandle.c
@@ -297,8 +297,11 @@ _gtk_text_handle_ensure_widget (GtkTextHandle         *handle,
 
       g_signal_connect (widget, "draw",
                         G_CALLBACK (gtk_text_handle_widget_draw), handle);
-      g_signal_connect (widget, "event",
-                        G_CALLBACK (gtk_text_handle_widget_event), handle);
+      g_signal_connect (widget, "button-press-event", G_CALLBACK (gtk_text_handle_widget_event), handle);
+      g_signal_connect (widget, "button-release-event", G_CALLBACK (gtk_text_handle_widget_event), handle);
+      g_signal_connect (widget, "enter-notify-event", G_CALLBACK (gtk_text_handle_widget_event), handle);
+      g_signal_connect (widget, "leave-notify-event", G_CALLBACK (gtk_text_handle_widget_event), handle);
+      g_signal_connect (widget, "motion-notify-event", G_CALLBACK (gtk_text_handle_widget_event), handle);
       g_signal_connect (widget, "style-updated",
                         G_CALLBACK (gtk_text_handle_widget_style_updated),
                         handle);


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