[gtk+] Drop gdkx_visual_get
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Drop gdkx_visual_get
- Date: Tue, 21 Dec 2010 17:13:22 +0000 (UTC)
commit 19cf9309a553dd65f530f92b7abb14aa2e4199d7
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 15 17:48:13 2010 -0500
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.
gdk/x11/gdkvisual-x11.c | 14 --------------
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 2624c69..5acff4e 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 e3e8bca..f9b21c3 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]