[gtk+] treeviewcolumn: Stop using GtkWidget::event



commit da74314779ec155e06d370fd2f3f73f3948b1311
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Dec 30 22:27:54 2017 -0500

    treeviewcolumn: Stop using GtkWidget::event
    
    This signal is going away.

 gtk/gtktreeviewcolumn.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 3186c7f..8d01394 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -820,7 +820,13 @@ gtk_tree_view_column_create_button (GtkTreeViewColumn *tree_column)
   priv->button = gtk_button_new ();
   g_object_ref_sink (priv->button);
 
-  g_signal_connect (priv->button, "event",
+  g_signal_connect (priv->button, "button-press-event",
+                   G_CALLBACK (gtk_tree_view_column_button_event),
+                   tree_column);
+  g_signal_connect (priv->button, "button-release-event",
+                   G_CALLBACK (gtk_tree_view_column_button_event),
+                   tree_column);
+  g_signal_connect (priv->button, "leave-notify-event",
                    G_CALLBACK (gtk_tree_view_column_button_event),
                    tree_column);
   g_signal_connect (priv->button, "clicked",


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