summaryrefslogtreecommitdiff
path: root/src/caja-window.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-15 20:42:24 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-15 20:42:24 +0100
commit50970d1bb15d1f9c682e92dda345e59cfcf5330f (patch)
treec180dd1b1f6a57381daa88b0ad580b55f4279ed1 /src/caja-window.c
parentccfe6d5364ecfd8f3bafef853e6a9fc7457a0af4 (diff)
downloadcaja-50970d1bb15d1f9c682e92dda345e59cfcf5330f.tar.bz2
caja-50970d1bb15d1f9c682e92dda345e59cfcf5330f.tar.xz
don't use deprecated gdk_cursor_new for both toolkit versions
gdk_cursor_new i deprecated with gtk+-3.16 and gdk_cursor_new_for_display is available since 2.2
Diffstat (limited to 'src/caja-window.c')
-rw-r--r--src/caja-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/caja-window.c b/src/caja-window.c
index 1392bad2..885815b8 100644
--- a/src/caja-window.c
+++ b/src/caja-window.c
@@ -415,7 +415,11 @@ update_cursor (CajaWindow *window)
if (slot->allow_stop)
{
- cursor = gdk_cursor_new (GDK_WATCH);
+ GdkDisplay *display;
+ GdkCursor * cursor;
+
+ display = gtk_widget_get_display (GTK_WIDGET (window));
+ cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (window)), cursor);
#if GTK_CHECK_VERSION(3,0,0)
g_object_unref (cursor);