[gtk/prop-list: 29/37] columnviewtitle: Invert on release
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/prop-list: 29/37] columnviewtitle: Invert on release
- Date: Sat, 21 Dec 2019 16:13:19 +0000 (UTC)
commit deadfd5166e33a1d665d150e1cd971123cbd4363
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]