summaryrefslogtreecommitdiff
path: root/gdk/gdkcursor.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-10-28 00:38:59 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-10-28 00:38:59 -0400
commiteedff394136013f31f9391e3c9d5b1ec5abc2c6f (patch)
tree4c1531fbabfbc99b33a2340a02bc16d2a104f3d2 /gdk/gdkcursor.c
parent8aecf2c06a2191d48af36549c104a151afe85411 (diff)
downloadgtk+-eedff394136013f31f9391e3c9d5b1ec5abc2c6f.tar.gz
Deprecate gdk_cursor_new()
Too easy to introduce an unintended assumption about the display being the default this way.
Diffstat (limited to 'gdk/gdkcursor.c')
-rw-r--r--gdk/gdkcursor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c
index c1e959086a..a9306e0782 100644
--- a/gdk/gdkcursor.c
+++ b/gdk/gdkcursor.c
@@ -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);
}
/**