Skip to content
Permalink
Browse files

editable-toolbar: replace deprecated gtk_drag_begin

use gtk_drag_begin_with_coordinates instead
  • Loading branch information...
raveit65 committed May 9, 2018
1 parent 530d7cb commit 50d0a501a9fc5ab3c0aee1450bfb4f0401392e4b
Showing with 7 additions and 1 deletion.
  1. +7 −1 cut-n-paste/toolbar-editor/egg-editable-toolbar.c
@@ -291,7 +291,13 @@ move_item_cb (GtkAction *action,
gdk_event_get_coords (realevent, &event.x, &event.y);
gdk_event_get_root_coords (realevent, &event.x_root, &event.y_root);

gtk_drag_begin (toolitem, list, GDK_ACTION_MOVE, 1, (GdkEvent *)&event);
gtk_drag_begin_with_coordinates (toolitem,
list,
GDK_ACTION_MOVE,
1,
(GdkEvent *)&event,
event.x,
event.y);
gtk_target_list_unref (list);
}

0 comments on commit 50d0a50

Please sign in to comment.
You can’t perform that action at this time.