diff options
author | Matthias Clasen <mclasen@redhat.com> | 2010-12-15 17:48:13 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-12-21 12:07:01 -0500 |
commit | 19cf9309a553dd65f530f92b7abb14aa2e4199d7 (patch) | |
tree | 85d3aad115dd3eeb521c3e42e512a7cc77d3ae45 | |
parent | e11bbbf194798a716be9b70a23dd2f02ecdb0dca (diff) | |
download | gtk+-19cf9309a553dd65f530f92b7abb14aa2e4199d7.tar.gz |
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.
-rw-r--r-- | gdk/x11/gdkvisual-x11.c | 14 | ||||
-rw-r--r-- | gdk/x11/gdkx.h | 5 |
2 files changed, 1 insertions, 18 deletions
diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c index 2624c69448..5acff4ec85 100644 --- a/gdk/x11/gdkvisual-x11.c +++ b/gdk/x11/gdkvisual-x11.c @@ -486,20 +486,6 @@ gdk_x11_screen_lookup_visual (GdkScreen *screen, 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 gdk_visual_add (GdkVisual *visual) { diff --git a/gdk/x11/gdkx.h b/gdk/x11/gdkx.h index e3e8bca51b..f9b21c3a73 100644 --- a/gdk/x11/gdkx.h +++ b/gdk/x11/gdkx.h @@ -180,10 +180,7 @@ gint gdk_x11_get_default_screen (void); #define GDK_VISUAL_XVISUAL(visual) (gdk_x11_visual_get_xvisual (visual)) GdkVisual* gdk_x11_screen_lookup_visual (GdkScreen *screen, - VisualID xvisualid); -#ifndef GDK_MULTIHEAD_SAFE -GdkVisual* gdkx_visual_get (VisualID xvisualid); -#endif + VisualID xvisualid); guint32 gdk_x11_get_server_time (GdkWindow *window); guint32 gdk_x11_display_get_user_time (GdkDisplay *display); |