[Xfce4-commits] [apps/xfce4-screensaver] 224/425: GTK3: don't use deprecated gdk_cursor_unref

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:51:11 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit a7b99cf5d0d72fa3c62bb18053e03cffcfbf5323
Author: Wolfgang Ulbrich <chat-to-me at raveit.de>
Date:   Fri Dec 11 14:40:52 2015 +0100

    GTK3: don't use deprecated gdk_cursor_unref
---
 src/gs-grab-x11.c  | 4 ++++
 src/gs-lock-plug.c | 8 ++++++++
 2 files changed, 12 insertions(+)

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;
 }
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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list