[gtk+] Deprecate gdk_cursor_new()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Deprecate gdk_cursor_new()
- Date: Tue, 28 Oct 2014 04:57:24 +0000 (UTC)
commit eedff394136013f31f9391e3c9d5b1ec5abc2c6f
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 28 00:38:59 2014 -0400
Deprecate gdk_cursor_new()
Too easy to introduce an unintended assumption about the display
being the default this way.
gdk/gdkcursor.c | 4 +++-
gdk/gdkcursor.h | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkcursor.c b/gdk/gdkcursor.c
index c1e9590..a9306e0 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);
}
/**
diff --git a/gdk/gdkcursor.h b/gdk/gdkcursor.h
index 48286f7..683ab07 100644
--- a/gdk/gdkcursor.h
+++ b/gdk/gdkcursor.h
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]