[gtk+] When wrapping a foreign W32 window, don't forget to store its HWND
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] When wrapping a foreign W32 window, don't forget to store its HWND
- Date: Tue, 5 Aug 2014 06:38:02 +0000 (UTC)
commit 31d08bd85e312ba05b7890b403c8a50cfdf52c4f
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Fri Jul 25 23:12:24 2014 +0000
When wrapping a foreign W32 window, don't forget to store its HWND
When that window is later used as a parent for a GDK child, the call to
CreateWindow*() will fail, because its HWND is 0.
https://bugzilla.gnome.org/show_bug.cgi?id=733768
gdk/win32/gdkwindow-win32.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index d9bb81e..5f28496 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -742,6 +742,7 @@ gdk_win32_window_foreign_new_for_display (GdkDisplay *display,
window->viewable = TRUE;
window->depth = gdk_visual_get_system ()->depth;
+ GDK_WINDOW_HWND (window) = anid;
g_object_ref (window);
gdk_win32_handle_table_insert (&GDK_WINDOW_HWND (window), window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]