[gtk+/gdk-backend] API: gdk: Deprecate gdk_cursor_ref() and gdk_cursor_unref()



commit a0c3b7523fe5c7421d50c68947412106dccef4ec
Author: Benjamin Otte <otte redhat com>
Date:   Mon Dec 20 03:27:05 2010 +0100

    API: gdk: Deprecate gdk_cursor_ref() and gdk_cursor_unref()
    
    Now that GdkCursor is a GObject, it doesn't need custom refcount
    handling anymore.

 gdk/gdkcursor.c |    4 ++++
 gdk/gdkcursor.h |    6 ++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c
index 3bbbbdd..840e8fc 100644
--- a/gdk/gdkcursor.c
+++ b/gdk/gdkcursor.c
@@ -78,6 +78,8 @@ gdk_cursor_init (GdkCursor *cursor)
  * Adds a reference to @cursor.
  *
  * Return value: Same @cursor that was passed in
+ *
+ * Deprecated: 3.0: Use g_object_ref() instead
  */
 GdkCursor*
 gdk_cursor_ref (GdkCursor *cursor)
@@ -93,6 +95,8 @@ gdk_cursor_ref (GdkCursor *cursor)
  *
  * Removes a reference from @cursor, deallocating the cursor
  * if no references remain.
+ *
+ * Deprecated: 3.0: Use g_object_unref() instead
  */
 void
 gdk_cursor_unref (GdkCursor *cursor)
diff --git a/gdk/gdkcursor.h b/gdk/gdkcursor.h
index 717c7d5..8a88545 100644
--- a/gdk/gdkcursor.h
+++ b/gdk/gdkcursor.h
@@ -228,11 +228,13 @@ GdkCursor* gdk_cursor_new_from_pixbuf	 (GdkDisplay      *display,
 					  GdkPixbuf       *pixbuf,
 					  gint             x,
 					  gint             y);
+GdkCursor*  gdk_cursor_new_from_name	 (GdkDisplay      *display,
+					  const gchar     *name);
 GdkDisplay* gdk_cursor_get_display	 (GdkCursor	  *cursor);
+#ifndef GDK_DISABLE_DEPRECATED
 GdkCursor*  gdk_cursor_ref               (GdkCursor       *cursor);
 void        gdk_cursor_unref             (GdkCursor       *cursor);
-GdkCursor*  gdk_cursor_new_from_name	 (GdkDisplay      *display,
-					  const gchar     *name);
+#endif
 GdkPixbuf*  gdk_cursor_get_image         (GdkCursor       *cursor);
 GdkCursorType gdk_cursor_get_cursor_type (GdkCursor       *cursor);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]