[gtk+/wip/matthiasc/linkbutton-dnd: 3/3] link button: Group the drag gesture
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/linkbutton-dnd: 3/3] link button: Group the drag gesture
- Date: Mon, 11 Dec 2017 02:26:53 +0000 (UTC)
commit 7c74d4044d09c533053d73970b3d80bb6cfa5563
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Dec 10 21:25:43 2017 -0500
link button: Group the drag gesture
This is an attempt to make link dnd work again.
gtk/gtklinkbutton.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 8b88724..a3e7166 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -67,6 +67,7 @@
#include "gtkprivate.h"
#include "gtkintl.h"
#include "gtkwidgetprivate.h"
+#include "gtkbuttonprivate.h"
#include "a11y/gtklinkbuttonaccessible.h"
@@ -240,6 +241,8 @@ gtk_link_button_init (GtkLinkButton *link_button)
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (priv->drag_gesture), 0);
g_signal_connect (priv->drag_gesture, "drag-update", G_CALLBACK (gtk_link_button_drag_update_cb),
link_button);
+ gtk_gesture_group (priv->drag_gesture, gtk_button_get_gesture (GTK_BUTTON (link_button)));
+
priv->click_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (link_button));
gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (priv->click_gesture), FALSE);
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (priv->click_gesture), 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]