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:
George Lebl
1998-07-13 19:43:33 +00:00
committed by George Lebl
parent 8792bbbd28
commit f38374c160
9 changed files with 46 additions and 2 deletions

View File

@ -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);
}