[gtk+/rendering-cleanup: 6/65] API: Remove gdk_x11_drawable_get_xdisplay()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 6/65] API: Remove gdk_x11_drawable_get_xdisplay()
- Date: Thu, 2 Dec 2010 11:51:57 +0000 (UTC)
commit cc4e112ed90ca724b4a60279ad3d6d9ff3090916
Author: Benjamin Otte <otte redhat com>
Date: Wed Oct 6 01:14:32 2010 +0200
API: Remove gdk_x11_drawable_get_xdisplay()
No need for the function. Macros exist to do the same thing.
docs/reference/gdk/gdk3-sections.txt | 1 -
gdk/gdk.symbols | 1 -
gdk/x11/gdkdrawable-x11.c | 29 -----------------------------
gdk/x11/gdkx.h | 3 +--
4 files changed, 1 insertions(+), 33 deletions(-)
---
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt
index 6ead743..596d722 100644
--- a/docs/reference/gdk/gdk3-sections.txt
+++ b/docs/reference/gdk/gdk3-sections.txt
@@ -1006,7 +1006,6 @@ gdk_x11_display_error_trap_pop
gdk_x11_display_error_trap_pop_ignored
gdk_x11_display_set_cursor_theme
gdk_x11_register_standard_event_type
-gdk_x11_drawable_get_xdisplay
gdk_x11_window_get_xid
gdk_x11_get_default_root_xwindow
gdk_x11_get_default_screen
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index 5a9a41e..abc2f59 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -547,7 +547,6 @@ gdk_x11_display_grab
gdk_x11_display_set_cursor_theme
gdk_x11_display_set_startup_notification_id
gdk_x11_display_ungrab
-gdk_x11_drawable_get_xdisplay
gdk_x11_get_default_root_xwindow
gdk_x11_get_default_screen
gdk_x11_get_default_xdisplay
diff --git a/gdk/x11/gdkdrawable-x11.c b/gdk/x11/gdkdrawable-x11.c
index 2447097..f00706b 100644
--- a/gdk/x11/gdkdrawable-x11.c
+++ b/gdk/x11/gdkdrawable-x11.c
@@ -105,35 +105,6 @@ _gdk_x11_drawable_update_size (GdkDrawable *drawable)
* X11 specific implementations of generic functions *
*****************************************************/
-static GdkDrawable *
-get_impl_drawable (GdkDrawable *drawable)
-{
- if (GDK_IS_WINDOW (drawable))
- return ((GdkWindowObject *)drawable)->impl;
- else
- {
- g_warning (G_STRLOC " drawable is not a window");
- return NULL;
- }
-}
-
-/**
- * gdk_x11_drawable_get_xdisplay:
- * @drawable: a #GdkDrawable.
- *
- * Returns the display of a #GdkDrawable.
- *
- * Return value: an Xlib <type>Display*</type>.
- **/
-Display *
-gdk_x11_drawable_get_xdisplay (GdkDrawable *drawable)
-{
- if (GDK_IS_DRAWABLE_IMPL_X11 (drawable))
- return GDK_SCREEN_XDISPLAY (GDK_DRAWABLE_IMPL_X11 (drawable)->screen);
- else
- return GDK_SCREEN_XDISPLAY (GDK_DRAWABLE_IMPL_X11 (get_impl_drawable (drawable))->screen);
-}
-
static void
gdk_x11_cairo_surface_destroy (void *data)
{
diff --git a/gdk/x11/gdkx.h b/gdk/x11/gdkx.h
index 1d5c850..885d5d4 100644
--- a/gdk/x11/gdkx.h
+++ b/gdk/x11/gdkx.h
@@ -55,7 +55,6 @@ G_BEGIN_DECLS
*/
-Display *gdk_x11_drawable_get_xdisplay (GdkDrawable *drawable);
Window gdk_x11_window_get_xid (GdkWindow *window);
Display *gdk_x11_cursor_get_xdisplay (GdkCursor *cursor);
Cursor gdk_x11_cursor_get_xcursor (GdkCursor *cursor);
@@ -193,7 +192,7 @@ gint gdk_x11_get_default_screen (void);
* Another name for GDK_DRAWABLE_XID().
*/
#define GDK_WINDOW_XWINDOW(win) (gdk_x11_window_get_xid (win))
-#define GDK_DRAWABLE_XDISPLAY(win) (gdk_x11_drawable_get_xdisplay (win))
+#define GDK_DRAWABLE_XDISPLAY(win) (GDK_WINDOW_XDISPLAY (win))
#define GDK_DRAWABLE_XID(win) (gdk_x11_window_get_xid (win))
#define GDK_SCREEN_XDISPLAY(screen) (gdk_x11_display_get_xdisplay (gdk_screen_get_display (screen)))
#define GDK_SCREEN_XSCREEN(screen) (gdk_x11_screen_get_xscreen (screen))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]