diff options
author | raveit65 <[email protected]> | 2017-03-13 11:14:39 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-04-07 13:03:17 +0200 |
commit | b8b8f3e1541e8492f747d31e0a96fe4076484874 (patch) | |
tree | df039e9f5ee53d1c008c011e5b8ec8e84c6dca55 /libview/ev-view.c | |
parent | dcb62ec8212d0cc006ee97fb38ee4a3c67cbea8e (diff) | |
download | atril-b8b8f3e1541e8492f747d31e0a96fe4076484874.tar.bz2 atril-b8b8f3e1541e8492f747d31e0a96fe4076484874.tar.xz |
ev-view: avoid deprecated gtk_drag_begin
use gtk_drag_begin_with_coordinates instead
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r-- | libview/ev-view.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c index ee24dd9d..70e78fa0 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -3945,9 +3945,11 @@ ev_view_motion_notify_event (GtkWidget *widget, gtk_target_list_add_text_targets (target_list, TARGET_DND_TEXT); - gtk_drag_begin (widget, target_list, - GDK_ACTION_COPY, - 1, (GdkEvent *)event); + gtk_drag_begin_with_coordinates (widget, target_list, + GDK_ACTION_COPY, + 1, (GdkEvent *)event, + event->x, + event->y); view->selection_info.in_drag = FALSE; @@ -3965,9 +3967,11 @@ ev_view_motion_notify_event (GtkWidget *widget, gtk_target_list_add_uri_targets (target_list, TARGET_DND_URI); gtk_target_list_add_image_targets (target_list, TARGET_DND_IMAGE, TRUE); - gtk_drag_begin (widget, target_list, - GDK_ACTION_COPY, - 1, (GdkEvent *)event); + gtk_drag_begin_with_coordinates (widget, target_list, + GDK_ACTION_COPY, + 1, (GdkEvent *)event, + event->x, + event->y); view->image_dnd_info.in_drag = FALSE; |