API: gdk: Deprecate gdk_cursor_ref() and gdk_cursor_unref()

Now that GdkCursor is a GObject, it doesn't need custom refcount
handling anymore.
This commit is contained in:
Benjamin Otte 2010-12-20 03:27:05 +01:00 committed by Matthias Clasen
parent 73d8ffd74f
commit 3e068e921f
2 changed files with 9 additions and 3 deletions

View File

@ -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)

View File

@ -228,11 +228,13 @@ GdkCursor* gdk_cursor_new_from_pixbuf (GdkDisplay *display,
GdkPixbuf *pixbuf,
gint x,
gint y);
GdkDisplay* gdk_cursor_get_display (GdkCursor *cursor);
GdkCursor* gdk_cursor_ref (GdkCursor *cursor);
void gdk_cursor_unref (GdkCursor *cursor);
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);
#endif
GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor);
GdkCursorType gdk_cursor_get_cursor_type (GdkCursor *cursor);