Add win32 implementation for foreign window functions

This commit is contained in:
Matthias Clasen 2010-12-17 00:46:04 -05:00
parent 58529e69ec
commit 2650328ea8
2 changed files with 9 additions and 5 deletions

View File

@ -91,6 +91,10 @@ GdkPixbuf *gdk_win32_icon_to_pixbuf_libgtk_only (HICON hicon);
HICON gdk_win32_pixbuf_to_hicon_libgtk_only (GdkPixbuf *pixbuf);
void gdk_win32_set_modal_dialog_libgtk_only (HWND window);
GdkWindow * gdk_win32_window_foreign_new_for_display (GdkDisplay *display,
GdkNativeWindow anid);
GdkWindow * gdk_win32_window_lookup_for_display (GdkDisplay *display,
GdkNativeWindow anid);
G_END_DECLS

View File

@ -618,8 +618,8 @@ _gdk_window_impl_new (GdkWindow *window,
}
GdkWindow *
gdk_window_foreign_new_for_display (GdkDisplay *display,
GdkNativeWindow anid)
gdk_win32_window_foreign_new_for_display (GdkDisplay *display,
GdkNativeWindow anid)
{
GdkWindow *window;
GdkWindowObject *private;
@ -677,7 +677,7 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
g_object_ref (window);
gdk_win32_handle_table_insert (&GDK_WINDOW_HWND (window), window);
GDK_NOTE (MISC, g_print ("gdk_window_foreign_new_for_display: %p: %s@%+d%+d\n",
GDK_NOTE (MISC, g_print ("gdk_win32_window_foreign_new_for_display: %p: %s@%+d%+d\n",
(HWND) anid,
_gdk_win32_drawable_description (window),
private->x, private->y));
@ -3092,8 +3092,8 @@ gdk_win32_window_shape_combine_region (GdkWindow *window,
}
GdkWindow *
gdk_window_lookup_for_display (GdkDisplay *display,
GdkNativeWindow anid)
gdk_win32_window_lookup_for_display (GdkDisplay *display,
GdkNativeWindow anid)
{
g_return_val_if_fail (display == _gdk_display, NULL);