forked from AuroraMiddleware/gtk
Move gdk_window_lookup to common code
This commit is contained in:
parent
31cd046cd0
commit
de84a7b14f
@ -10685,3 +10685,21 @@ gdk_window_register_dnd (GdkWindow *window)
|
||||
{
|
||||
GDK_WINDOW_IMPL_GET_CLASS (window->impl)->register_dnd (window);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 gdk_window_lookup_for_display (gdk_display_get_default (), anid);
|
||||
}
|
||||
|
@ -2868,13 +2868,6 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
GdkWindow*
|
||||
gdk_window_lookup (GdkNativeWindow anid)
|
||||
{
|
||||
/* Foreign windows aren't supported in Mac OS X */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
GdkWindow *
|
||||
gdk_window_lookup_for_display (GdkDisplay *display, GdkNativeWindow anid)
|
||||
{
|
||||
|
@ -685,12 +685,6 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
|
||||
return window;
|
||||
}
|
||||
|
||||
GdkWindow*
|
||||
gdk_window_lookup (GdkNativeWindow hwnd)
|
||||
{
|
||||
return (GdkWindow*) gdk_win32_handle_table_lookup (hwnd);
|
||||
}
|
||||
|
||||
void
|
||||
_gdk_win32_window_destroy (GdkWindow *window,
|
||||
gboolean recursing,
|
||||
@ -3103,7 +3097,7 @@ gdk_window_lookup_for_display (GdkDisplay *display,
|
||||
{
|
||||
g_return_val_if_fail (display == _gdk_display, NULL);
|
||||
|
||||
return gdk_window_lookup (anid);
|
||||
return (GdkWindow*) gdk_win32_handle_table_lookup (hwnd);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user