diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols index 8b1be9c641..73eb22383a 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 bcc6fed0f4..a20efba970 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 36d4387a2d..da3c33083e 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. */