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

@ -1,3 +1,9 @@
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.
Sun Jul 12 16:40:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument

View File

@ -1,3 +1,9 @@
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.
Sun Jul 12 16:40:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument

View File

@ -1,3 +1,9 @@
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.
Sun Jul 12 16:40:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument

View File

@ -1,3 +1,9 @@
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.
Sun Jul 12 16:40:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument

View File

@ -1,3 +1,9 @@
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.
Sun Jul 12 16:40:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument

View File

@ -1,3 +1,9 @@
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.
Sun Jul 12 16:40:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument

View File

@ -1,3 +1,9 @@
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.
Sun Jul 12 16:40:06 1998 Tim Janik <timj@gtk.org>
* gtk/gtkargcollector.c (gtk_arg_collect_value): fix float argument

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

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