Commit 19cf9309 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Drop gdkx_visual_get

The function is badly named, not multihead-safe, basically unused,
and has a better replacement with gdk_x11_screen_lookup_visual.
parent e11bbbf1
...@@ -486,20 +486,6 @@ gdk_x11_screen_lookup_visual (GdkScreen *screen, ...@@ -486,20 +486,6 @@ gdk_x11_screen_lookup_visual (GdkScreen *screen,
return NULL; return NULL;
} }
/**
* gdkx_visual_get:
* @xvisualid: a X visual id.
*
* Returns a #GdkVisual corresponding to a X visual.
*
* Return value: the #GdkVisual.
**/
GdkVisual*
gdkx_visual_get (VisualID xvisualid)
{
return gdk_x11_screen_lookup_visual (gdk_screen_get_default (), xvisualid);
}
static void static void
gdk_visual_add (GdkVisual *visual) gdk_visual_add (GdkVisual *visual)
{ {
......
...@@ -180,10 +180,7 @@ gint gdk_x11_get_default_screen (void); ...@@ -180,10 +180,7 @@ gint gdk_x11_get_default_screen (void);
#define GDK_VISUAL_XVISUAL(visual) (gdk_x11_visual_get_xvisual (visual)) #define GDK_VISUAL_XVISUAL(visual) (gdk_x11_visual_get_xvisual (visual))
GdkVisual* gdk_x11_screen_lookup_visual (GdkScreen *screen, GdkVisual* gdk_x11_screen_lookup_visual (GdkScreen *screen,
VisualID xvisualid); VisualID xvisualid);
#ifndef GDK_MULTIHEAD_SAFE
GdkVisual* gdkx_visual_get (VisualID xvisualid);
#endif
guint32 gdk_x11_get_server_time (GdkWindow *window); guint32 gdk_x11_get_server_time (GdkWindow *window);
guint32 gdk_x11_display_get_user_time (GdkDisplay *display); guint32 gdk_x11_display_get_user_time (GdkDisplay *display);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment