summaryrefslogtreecommitdiff
path: root/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-03-12 09:07:18 +0100
committerraveit65 <[email protected]>2017-04-07 13:03:17 +0200
commitdcb62ec8212d0cc006ee97fb38ee4a3c67cbea8e (patch)
tree30fe84b033d1556e4fe718317bbdb7b4040e3cfa /cut-n-paste/toolbar-editor/egg-editable-toolbar.c
parentf2064cf1c9eb305dbf3a0fd9a77bd7fde2ca95c9 (diff)
downloadatril-dcb62ec8212d0cc006ee97fb38ee4a3c67cbea8e.tar.bz2
atril-dcb62ec8212d0cc006ee97fb38ee4a3c67cbea8e.tar.xz
egg-editable-toolbar: avoid deprecated gtk_drag_begin
use gtk_drag_begin_with_coordinates instead
Diffstat (limited to 'cut-n-paste/toolbar-editor/egg-editable-toolbar.c')
-rw-r--r--cut-n-paste/toolbar-editor/egg-editable-toolbar.c8
1 files changed, 7 insertions, 1 deletions
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);
}