Move gdk_window_lookup to common code

This commit is contained in:
Matthias Clasen
2010-12-09 00:02:35 -05:00
parent 31cd046cd0
commit de84a7b14f
4 changed files with 19 additions and 32 deletions

View File

@ -969,24 +969,6 @@ gdk_window_lookup_for_display (GdkDisplay *display, GdkNativeWindow anid)
return (GdkWindow*) gdk_xid_table_lookup_for_display (display, anid);
}
/**
* 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
* <type>XID</type>.
*
* Return value: (transfer none): the #GdkWindow wrapper for the native
* window, or %NULL if there is none.
**/
GdkWindow *
gdk_window_lookup (GdkNativeWindow anid)
{
return (GdkWindow*) gdk_xid_table_lookup (anid);
}
static void
gdk_toplevel_x11_free_contents (GdkDisplay *display,
GdkToplevelX11 *toplevel)