initialize private->impl. Thanks to Masse Nicolas for pointing this out.

2009-02-19  Sven Neumann  <sven@gimp.org>

	* gdk/directfb/gdkwindow-directfb.c
	(gdk_window_foreign_new_for_display, gdk_directfb_window_new):
	initialize private->impl. Thanks to Masse Nicolas for pointing
	this out.


svn path=/trunk/; revision=22380
This commit is contained in:
Sven Neumann 2009-02-19 21:30:49 +00:00 committed by Sven Neumann
parent ed687d4a0d
commit 03796c0a90
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2009-02-19 Sven Neumann <sven@gimp.org>
* gdk/directfb/gdkwindow-directfb.c
(gdk_window_foreign_new_for_display, gdk_directfb_window_new):
initialize private->impl. Thanks to Masse Nicolas for pointing
this out.
2009-02-19 Matthias Clasen <mclasen@redhat.com>
Bug 572387 gdm crashes after gtk 2.15.4 upgrade

View File

@ -411,8 +411,7 @@ _gdk_windowing_window_init (void)
g_assert (_gdk_parent_root == NULL);
_gdk_display->layer->GetConfiguration(
_gdk_display->layer, &dlc );
_gdk_display->layer->GetConfiguration (_gdk_display->layer, &dlc);
_gdk_parent_root = g_object_new (GDK_TYPE_WINDOW, NULL);
private = GDK_WINDOW_OBJECT (_gdk_parent_root);
@ -2653,6 +2652,7 @@ GdkWindow *gdk_directfb_create_child_window(GdkWindow *parent,
window = g_object_new (GDK_TYPE_WINDOW, NULL);
private = GDK_WINDOW_OBJECT (window);
private->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
parent_private = GDK_WINDOW_OBJECT (parent);
parent_impl = GDK_WINDOW_IMPL_DIRECTFB (parent_private->impl);
private->parent = parent_private;
@ -2731,6 +2731,7 @@ gdk_window_foreign_new_for_display (GdkDisplay* display,GdkNativeWindow anid)
/* we hold a reference count on ourselves */
g_object_ref (window);
private = GDK_WINDOW_OBJECT (window);
private->impl = g_object_new (_gdk_window_impl_get_type (), NULL);
private->parent = parent_private;
private->window_type = GDK_WINDOW_TOPLEVEL;
impl = GDK_WINDOW_IMPL_DIRECTFB (private->impl);