Commit eedff394 authored by Matthias Clasen's avatar Matthias Clasen

Deprecate gdk_cursor_new()

Too easy to introduce an unintended assumption about the display
being the default this way.
parent 8aecf2c0
......@@ -192,11 +192,13 @@ gdk_cursor_unref (GdkCursor *cursor)
* To make the cursor invisible, use %GDK_BLANK_CURSOR.
*
* Returns: a new #GdkCursor
*
* Deprecated: 3.16: Use gdk_cursor_new_for_display() instead.
*/
GdkCursor*
gdk_cursor_new (GdkCursorType cursor_type)
{
return gdk_cursor_new_for_display (gdk_display_get_default(), cursor_type);
return gdk_cursor_new_for_display (gdk_display_get_default (), cursor_type);
}
/**
......
......@@ -219,7 +219,7 @@ GType gdk_cursor_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL
GdkCursor* gdk_cursor_new_for_display (GdkDisplay *display,
GdkCursorType cursor_type);
GDK_AVAILABLE_IN_ALL
GDK_DEPRECATED_IN_3_16
GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
GDK_AVAILABLE_IN_ALL
GdkCursor* gdk_cursor_new_from_pixbuf (GdkDisplay *display,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment