[Xfce4-commits] [xfce/thunar] 07/07: Replace gtk_drag_begin
noreply at xfce.org
noreply at xfce.org
Sat Jun 2 18:35:52 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit d6ff6068e1ee61ac3de1cf157e74284f4f8d6e54
Author: Andre Miranda <andreldm at xfce.org>
Date: Sat Jun 2 13:35:25 2018 -0300
Replace gtk_drag_begin
---
thunar/thunar-path-entry.c | 6 +++++-
thunar/thunar-standard-view.c | 7 ++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/thunar/thunar-path-entry.c b/thunar/thunar-path-entry.c
index ca73234..049e0ed 100644
--- a/thunar/thunar-path-entry.c
+++ b/thunar/thunar-path-entry.c
@@ -435,7 +435,11 @@ thunar_path_entry_motion_notify_event (GtkWidget *widget,
{
/* create the drag context */
target_list = gtk_target_list_new (drag_targets, G_N_ELEMENTS (drag_targets));
- context = gtk_drag_begin (widget, target_list, GDK_ACTION_COPY | GDK_ACTION_LINK, path_entry->drag_button, (GdkEvent *) event);
+ context = gtk_drag_begin_with_coordinates (widget, target_list,
+ GDK_ACTION_COPY |
+ GDK_ACTION_LINK,
+ path_entry->drag_button,
+ (GdkEvent *) event, -1, -1);
gtk_target_list_unref (target_list);
/* setup the drag icon (atleast 24px) */
diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c
index 46d8715..790982d 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -3079,7 +3079,12 @@ thunar_standard_view_motion_notify_event (GtkWidget *view,
/* allocate the drag context (preferred action is to ask the user) */
target_list = gtk_target_list_new (drag_targets, G_N_ELEMENTS (drag_targets));
- context = gtk_drag_begin (view, target_list, GDK_ACTION_COPY | GDK_ACTION_MOVE | GDK_ACTION_LINK | GDK_ACTION_ASK, 3, (GdkEvent *) event);
+ context = gtk_drag_begin_with_coordinates (view, target_list,
+ GDK_ACTION_COPY |
+ GDK_ACTION_MOVE |
+ GDK_ACTION_LINK |
+ GDK_ACTION_ASK,
+ 3, (GdkEvent *) event, -1, -1);
/* FIXME
gdk_drag_context_set_suggested_action (context, GDK_ACTION_ASK);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list