[gtk+/gdk-backend-deprecations: 6/9] Deprecate gdkx_visual_get



commit c20adf02e19a7d07f37700bc4c354ad5be8dda5f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Dec 17 01:11:20 2010 -0500

    Deprecate gdkx_visual_get

 gdk/gdk.symbols         |    2 ++
 gdk/x11/gdkvisual-x11.c |    8 +++++---
 gdk/x11/gdkx.h          |    2 ++
 3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index 8b1be9c..73eb223 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -1349,8 +1349,10 @@ gdk_x11_screen_get_monitor_output
 #if IN_FILE(__GDK_VISUAL_X11_C__)
 gdk_x11_screen_lookup_visual
 gdk_x11_visual_get_xvisual
+#ifndef GDK_DISABLE_DEPRECATED
 gdkx_visual_get
 #endif
+#endif
 
 #if IN_FILE(__GDK_WINDOW_X11_C__)
 gdk_x11_window_set_user_time
diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c
index bcc6fed..a20efba 100644
--- a/gdk/x11/gdkvisual-x11.c
+++ b/gdk/x11/gdkvisual-x11.c
@@ -575,11 +575,13 @@ gdk_x11_screen_lookup_visual (GdkScreen *screen,
 /**
  * gdkx_visual_get:
  * @xvisualid: a X visual id.
- * 
+ *
  * Returns a #GdkVisual corresponding to a X visual. 
- * 
+ *
  * Return value: the #GdkVisual.
- **/
+ *
+ * Deprecated:2.24: Use gdk_x11_screen_lookup_visual() instead
+ */
 GdkVisual*
 gdkx_visual_get (VisualID xvisualid)
 {
diff --git a/gdk/x11/gdkx.h b/gdk/x11/gdkx.h
index 36d4387..da3c330 100644
--- a/gdk/x11/gdkx.h
+++ b/gdk/x11/gdkx.h
@@ -127,9 +127,11 @@ gint     gdk_x11_get_default_screen       (void);
 
 GdkVisual* gdk_x11_screen_lookup_visual (GdkScreen *screen,
 					 VisualID   xvisualid);
+#ifndef GDK_DISABLE_DEPRECATED
 #ifndef GDK_MULTIHEAD_SAFE
 GdkVisual* gdkx_visual_get            (VisualID   xvisualid);
 #endif
+#endif
 
 #ifdef GDK_ENABLE_BROKEN
 /* XXX: An X Colormap is useless unless we also have the visual. */



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