From 2d7583c0e32168a89168a1fbc40155122db1bfe9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 15 Dec 2010 01:39:30 -0500 Subject: Make gdk_window_{lookup,foreign_new}_for_display backend specific At the same time, make GDK_IS_DISPLAY_X11 available in gdkx.h, and add some exemplaric ifdefs to GTK+ code. --- gdk/gdkwindow.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'gdk/gdkwindow.c') diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 215bc5a80c..d0deb91f1a 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -5058,25 +5058,6 @@ gdk_get_default_root_window (void) return gdk_screen_get_root_window (gdk_screen_get_default ()); } -/** - * gdk_window_foreign_new: - * @anid: a native window handle. - * - * Wraps a native window for the default display in a #GdkWindow. - * This may fail if the window has been destroyed. - * - * For example in the X backend, a native window handle is an Xlib - * XID. - * - * Return value: (transfer full): the newly-created #GdkWindow wrapper - * for the native window, or %NULL if the window has been destroyed. - **/ -GdkWindow * -gdk_window_foreign_new (GdkNativeWindow anid) -{ - return gdk_window_foreign_new_for_display (gdk_display_get_default (), anid); -} - static void get_all_native_children (GdkWindow *window, GList **native) @@ -10745,21 +10726,3 @@ gdk_drag_begin_for_device (GdkWindow *window, { return GDK_WINDOW_IMPL_GET_CLASS (window->impl)->drag_begin (window, device, targets); } - -/** - * gdk_window_lookup: - * @anid: a native window handle - * - * Looks up the #GdkWindow that wraps the given native window handle. - * - * For example in the X backend, a native window handle is an Xlib - * XID. - * - * Return value: (transfer none): the #GdkWindow wrapper for the native - * window, or %NULL if there is none. - **/ -GdkWindow * -gdk_window_lookup (GdkNativeWindow anid) -{ - return gdk_window_lookup_for_display (gdk_display_get_default (), anid); -} -- cgit v1.2.1