[gtk+] Deprecate gdk_get_display()



commit f73bf26df0c5f92a9f264defc707cf4ca4964bd6
Author: Benjamin Otte <otte redhat com>
Date:   Sun Nov 25 21:11:48 2012 +0100

    Deprecate gdk_get_display()

 gdk/gdk.c     |    3 +++
 gdk/gdkmain.h |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 3e2ef2a..711a096 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -333,6 +333,9 @@ gdk_parse_args (int    *argc,
  * <option>--display</option> command line option.
  *
  * Returns: the name of the display.
+ *
+ * Deprecated: 3.8: Call gdk_display_get_name (gdk_display_get_default ()))
+ *    instead.
  */
 gchar *
 gdk_get_display (void)
diff --git a/gdk/gdkmain.h b/gdk/gdkmain.h
index 4fbe7ac..580a305 100644
--- a/gdk/gdkmain.h
+++ b/gdk/gdkmain.h
@@ -65,6 +65,7 @@ void                           gdk_error_trap_pop_ignored (void);
 
 const gchar *         gdk_get_display_arg_name (void);
 
+GDK_DEPRECATED_IN_3_8_FOR(gdk_display_get_name (gdk_display_get_default ()))
 gchar*        gdk_get_display        (void);
 
 #ifndef GDK_MULTIDEVICE_SAFE


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]