Skip to content

Commit

Permalink
Replace gtk_drag_begin
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Miranda committed Jun 2, 2018
1 parent 00ba8e4 commit d6ff606
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion thunar/thunar-path-entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down
7 changes: 6 additions & 1 deletion thunar/thunar-standard-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d6ff606

Please sign in to comment.