From dcb62ec8212d0cc006ee97fb38ee4a3c67cbea8e Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 12 Mar 2017 09:07:18 +0100 Subject: egg-editable-toolbar: avoid deprecated gtk_drag_begin use gtk_drag_begin_with_coordinates instead --- cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cut-n-paste/toolbar-editor') diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index 54f1e823..ad9c1755 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -298,7 +298,13 @@ move_item_cb (GtkAction *action, gdk_event_get_coords (realevent, &event->motion.x, &event->motion.y); gdk_event_get_root_coords (realevent, &event->motion.x_root, &event->motion.y_root); - gtk_drag_begin (toolitem, list, GDK_ACTION_MOVE, 1, event); + gtk_drag_begin_with_coordinates (toolitem, + list, + GDK_ACTION_MOVE, + 1, + event, + event->motion.x, + event->motion.y); gdk_event_free (event); gtk_target_list_unref (list); } -- cgit v1.2.1