Need to initialise private->impl here, too.

2008-07-07  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkwindow-win32.c
	(gdk_window_foreign_new_for_display): Need to initialise
	private->impl here, too.


svn path=/trunk/; revision=20805
This commit is contained in:
Tor Lillqvist 2008-07-07 09:28:40 +00:00 committed by Tor Lillqvist
parent a51c43f5c6
commit d698b1f6fd
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-07-07 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkwindow-win32.c
(gdk_window_foreign_new_for_display): Need to initialise
private->impl here, too.
2008-07-07 Michael Natterer <mitch@imendio.com> 2008-07-07 Michael Natterer <mitch@imendio.com>
* gtk/gtkfilesystem.c: include the two needed headers instead of * gtk/gtkfilesystem.c: include the two needed headers instead of

View File

@ -796,6 +796,7 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
window = g_object_new (GDK_TYPE_WINDOW, NULL); window = g_object_new (GDK_TYPE_WINDOW, NULL);
private = (GdkWindowObject *)window; private = (GdkWindowObject *)window;
private->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
impl = GDK_WINDOW_IMPL_WIN32 (private->impl); impl = GDK_WINDOW_IMPL_WIN32 (private->impl);
draw_impl = GDK_DRAWABLE_IMPL_WIN32 (private->impl); draw_impl = GDK_DRAWABLE_IMPL_WIN32 (private->impl);
draw_impl->wrapper = GDK_DRAWABLE (window); draw_impl->wrapper = GDK_DRAWABLE (window);