Commit d6ff6068 authored by Andre Miranda's avatar Andre Miranda

Replace gtk_drag_begin

parent 00ba8e47
......@@ -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) */
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment