[gtk/prop-list: 53/57] columnviewtitle: Invert on release



commit 29110eb77b6b5920c9e56d9f1b36a332d02c6751
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 20 15:46:01 2019 -0500

    columnviewtitle: Invert on release
    
    This is necessary to make drag-to-reorder work
    without triggering inversion.

 gtk/gtkcolumnviewtitle.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcolumnviewtitle.c b/gtk/gtkcolumnviewtitle.c
index edab3c0d30..eec680f998 100644
--- a/gtk/gtkcolumnviewtitle.c
+++ b/gtk/gtkcolumnviewtitle.c
@@ -120,11 +120,11 @@ gtk_column_view_title_resize_func (GtkWidget *widget)
 }
 
 static void
-click_pressed_cb (GtkGestureClick *gesture,
-                  guint            n_press,
-                  gdouble          x,
-                  gdouble          y,
-                  GtkWidget       *widget)
+click_released_cb (GtkGestureClick *gesture,
+                   guint            n_press,
+                   gdouble          x,
+                   gdouble          y,
+                   GtkWidget       *widget)
 {
   GtkColumnViewTitle *self = GTK_COLUMN_VIEW_TITLE (widget);
   GtkSorter *sorter;
@@ -158,7 +158,7 @@ gtk_column_view_title_init (GtkColumnViewTitle *self)
   gtk_container_add (GTK_CONTAINER (self->box), self->sort);
 
   gesture = gtk_gesture_click_new ();
-  g_signal_connect (gesture, "pressed", G_CALLBACK (click_pressed_cb), self);
+  g_signal_connect (gesture, "released", G_CALLBACK (click_released_cb), self);
   gtk_widget_add_controller (GTK_WIDGET (self), GTK_EVENT_CONTROLLER (gesture));
 }
 


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