summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-tree-view-drag-dest.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-07-25 12:50:07 +0200
committerStefano Karapetsas <[email protected]>2013-07-25 12:50:07 +0200
commit9414c75602ba6f099d39275b9c09db656f27a59e (patch)
tree7ec6438367425aa75bc9b9839c5c6cebf72c3113 /libcaja-private/caja-tree-view-drag-dest.c
parent73325c232756ace088ae3f8d64455af2c35a5381 (diff)
downloadcaja-9414c75602ba6f099d39275b9c09db656f27a59e.tar.bz2
caja-9414c75602ba6f099d39275b9c09db656f27a59e.tar.xz
Fixes for GTK3 support
Diffstat (limited to 'libcaja-private/caja-tree-view-drag-dest.c')
-rw-r--r--libcaja-private/caja-tree-view-drag-dest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcaja-private/caja-tree-view-drag-dest.c b/libcaja-private/caja-tree-view-drag-dest.c
index e1cb7bad..294d78a4 100644
--- a/libcaja-private/caja-tree-view-drag-dest.c
+++ b/libcaja-private/caja-tree-view-drag-dest.c
@@ -1045,7 +1045,11 @@ set_direct_save_uri (CajaTreeViewDragDest *dest,
g_object_unref (child);
/* Change the property */
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_property_change (gdk_drag_context_get_source_window (context),
+#else
gdk_property_change (GDK_DRAWABLE (gdk_drag_context_get_source_window (context)),
+#endif
gdk_atom_intern (CAJA_ICON_DND_XDNDDIRECTSAVE_TYPE, FALSE),
gdk_atom_intern ("text/plain", FALSE), 8,
GDK_PROP_MODE_REPLACE, (const guchar *) uri,