diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-12-11 14:40:52 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-11 14:40:52 +0100 |
commit | a7b99cf5d0d72fa3c62bb18053e03cffcfbf5323 (patch) | |
tree | 51ad669e8dfaaf019d9afdd869591888fb7c2d79 /src/gs-grab-x11.c | |
parent | adfc2809795fa6b740c34120bb0438ddd07e8dff (diff) | |
download | mate-screensaver-a7b99cf5d0d72fa3c62bb18053e03cffcfbf5323.tar.bz2 mate-screensaver-a7b99cf5d0d72fa3c62bb18053e03cffcfbf5323.tar.xz |
GTK3: don't use deprecated gdk_cursor_unref
Diffstat (limited to 'src/gs-grab-x11.c')
-rw-r--r-- | src/gs-grab-x11.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gs-grab-x11.c b/src/gs-grab-x11.c index 7367034..421398b 100644 --- a/src/gs-grab-x11.c +++ b/src/gs-grab-x11.c @@ -232,7 +232,11 @@ gs_grab_get_mouse (GSGrab *grab, grab->priv->mouse_hide_cursor = hide_cursor; } +#if GTK_CHECK_VERSION (3, 0, 0) + g_object_unref (cursor); +#else gdk_cursor_unref (cursor); +#endif return status; } |