mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
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:
parent
73d8ffd74f
commit
3e068e921f
@ -78,6 +78,8 @@ gdk_cursor_init (GdkCursor *cursor)
|
|||||||
* Adds a reference to @cursor.
|
* Adds a reference to @cursor.
|
||||||
*
|
*
|
||||||
* Return value: Same @cursor that was passed in
|
* Return value: Same @cursor that was passed in
|
||||||
|
*
|
||||||
|
* Deprecated: 3.0: Use g_object_ref() instead
|
||||||
*/
|
*/
|
||||||
GdkCursor*
|
GdkCursor*
|
||||||
gdk_cursor_ref (GdkCursor *cursor)
|
gdk_cursor_ref (GdkCursor *cursor)
|
||||||
@ -93,6 +95,8 @@ gdk_cursor_ref (GdkCursor *cursor)
|
|||||||
*
|
*
|
||||||
* Removes a reference from @cursor, deallocating the cursor
|
* Removes a reference from @cursor, deallocating the cursor
|
||||||
* if no references remain.
|
* if no references remain.
|
||||||
|
*
|
||||||
|
* Deprecated: 3.0: Use g_object_unref() instead
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gdk_cursor_unref (GdkCursor *cursor)
|
gdk_cursor_unref (GdkCursor *cursor)
|
||||||
|
@ -228,11 +228,13 @@ GdkCursor* gdk_cursor_new_from_pixbuf (GdkDisplay *display,
|
|||||||
GdkPixbuf *pixbuf,
|
GdkPixbuf *pixbuf,
|
||||||
gint x,
|
gint x,
|
||||||
gint y);
|
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,
|
GdkCursor* gdk_cursor_new_from_name (GdkDisplay *display,
|
||||||
const gchar *name);
|
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);
|
GdkPixbuf* gdk_cursor_get_image (GdkCursor *cursor);
|
||||||
GdkCursorType gdk_cursor_get_cursor_type (GdkCursor *cursor);
|
GdkCursorType gdk_cursor_get_cursor_type (GdkCursor *cursor);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user