[evince] libview: Fix gtk_drag_begin deprecations



commit a5a24927dd7e1e3e8aa31d32bf60f16528ec0111
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Mon Jun 29 22:07:07 2020 -0400

    libview: Fix gtk_drag_begin deprecations

 libview/ev-view.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 17a8b508..4b18b605 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5955,9 +5955,10 @@ 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,
+                                                        -1, -1);
 
                        view->selection_info.in_drag = FALSE;
                        view->pressed_button = -1;
@@ -5976,9 +5977,10 @@ 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,
+                                                        -1, -1);
 
                        view->image_dnd_info.in_drag = FALSE;
                        view->pressed_button = -1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]