From 5e54ce21100e02e0543d891e3bf8dc1782fa0db2 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 4 May 2014 21:56:02 +0200 Subject: Fix gdk_cursor_unref deprecation --- libmate-desktop/mate-colorsel.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmate-desktop/mate-colorsel.c') diff --git a/libmate-desktop/mate-colorsel.c b/libmate-desktop/mate-colorsel.c index 79ae054..cb27572 100644 --- a/libmate-desktop/mate-colorsel.c +++ b/libmate-desktop/mate-colorsel.c @@ -2098,7 +2098,11 @@ get_screen_color (GtkWidget *button) NULL, picker_cursor, time); +#if GTK_CHECK_VERSION (3, 0, 0) + g_object_unref (picker_cursor); +#else gdk_cursor_unref (picker_cursor); +#endif if (grab_status != GDK_GRAB_SUCCESS) { -- cgit v1.2.1