Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
editable-toolbar: replace deprecated gtk_drag_begin
use gtk_drag_begin_with_coordinates instead
  • Loading branch information
raveit65 committed May 13, 2018
1 parent 530d7cb commit 50d0a50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cut-n-paste/toolbar-editor/egg-editable-toolbar.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 50d0a50

Please sign in to comment.