check if old_parent_private is not NULL before trying to g_list_remove the
Mon Jul 13 12:42:51 1998 George Lebl <jirka@5z.com> * gdk/gdkwindow.h: (gdk_window_reparent) check if old_parent_private is not NULL before trying to g_list_remove the child. A patch from Michael Lausch. this finally fixes the swallows for the panel :)
This commit is contained in:
@ -853,7 +853,8 @@ gdk_window_reparent (GdkWindow *window,
|
||||
parent_private->xwindow,
|
||||
x, y);
|
||||
|
||||
old_parent_private->children = g_list_remove (old_parent_private->children, window);
|
||||
if (old_parent_private)
|
||||
old_parent_private->children = g_list_remove (old_parent_private->children, window);
|
||||
parent_private->children = g_list_prepend (parent_private->children, window);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user