diff options
author | raveit65 <chat-to-me@raveit.de> | 2016-06-27 12:12:51 +0200 |
---|---|---|
committer | raveit65 <chat-to-me@raveit.de> | 2016-07-04 14:40:52 +0200 |
commit | d886a6fa7e3c624d4b53e5d3346ab63a34a991bf (patch) | |
tree | b3f34961c63485fcdbfffa281fa610896925fcf3 | |
parent | 78f10df5adf757025070f864a92a1916c78593fb (diff) | |
download | caja-d886a6fa7e3c624d4b53e5d3346ab63a34a991bf.tar.bz2 caja-d886a6fa7e3c624d4b53e5d3346ab63a34a991bf.tar.xz |
GTK+-3 caja-icon-dnd: avoid deprecated gtk_drag_begin
use gtk_drag_begin_with_coordinates instead
-rw-r--r-- | libcaja-private/caja-icon-dnd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcaja-private/caja-icon-dnd.c b/libcaja-private/caja-icon-dnd.c index 82707150..a58a6a87 100644 --- a/libcaja-private/caja-icon-dnd.c +++ b/libcaja-private/caja-icon-dnd.c @@ -1600,11 +1600,21 @@ caja_icon_dnd_begin_drag (CajaIconContainer *container, gtk_adjustment_get_value (gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (container))); /* start the drag */ +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_drag_begin_with_coordinates (GTK_WIDGET (container), + dnd_info->drag_info.target_list, + actions, + button, + (GdkEvent *) event, + dnd_info->drag_info.start_x, + dnd_info->drag_info.start_y); +#else gtk_drag_begin (GTK_WIDGET (container), dnd_info->drag_info.target_list, actions, button, (GdkEvent *) event); +#endif } static gboolean |