summaryrefslogtreecommitdiff
path: root/src/gs-lock-plug.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-11 14:40:52 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-11 14:40:52 +0100
commita7b99cf5d0d72fa3c62bb18053e03cffcfbf5323 (patch)
tree51ad669e8dfaaf019d9afdd869591888fb7c2d79 /src/gs-lock-plug.c
parentadfc2809795fa6b740c34120bb0438ddd07e8dff (diff)
downloadmate-screensaver-a7b99cf5d0d72fa3c62bb18053e03cffcfbf5323.tar.bz2
mate-screensaver-a7b99cf5d0d72fa3c62bb18053e03cffcfbf5323.tar.xz
GTK3: don't use deprecated gdk_cursor_unref
Diffstat (limited to 'src/gs-lock-plug.c')
-rw-r--r--src/gs-lock-plug.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index 5fe6d60..9585a05 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -1564,7 +1564,11 @@ gs_lock_plug_set_busy (GSLockPlug *plug)
cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (gtk_widget_get_window (top_level), cursor);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (cursor);
+#else
gdk_cursor_unref (cursor);
+#endif
}
void
@@ -1577,7 +1581,11 @@ gs_lock_plug_set_ready (GSLockPlug *plug)
cursor = gdk_cursor_new (GDK_LEFT_PTR);
gdk_window_set_cursor (gtk_widget_get_window (top_level), cursor);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ g_object_unref (cursor);
+#else
gdk_cursor_unref (cursor);
+#endif
}
void