save the widgets visibility flag for evaluation after the widget got

* gtk/gtkbox.c (gtk_box_remove): save the widgets visibility flag for
                evaluation after the widget got destroyed, discovered by Johannes
                        Keukelaar <johannes@nada.kth.se>.
This commit is contained in:
Tim Janik 1998-03-24 03:34:38 +00:00
parent c88afb81f9
commit 7de464ffe8
8 changed files with 46 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Tue Mar 24 03:53:18 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbox.c (gtk_box_remove): save the widgets visibility flag for
evaluation after the widget got destroyed, discovered by Johannes
Keukelaar <johannes@nada.kth.se>.
1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkclist.c (gtk_clist_set_row_data_full): Select the row

View File

@ -1,3 +1,9 @@
Tue Mar 24 03:53:18 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbox.c (gtk_box_remove): save the widgets visibility flag for
evaluation after the widget got destroyed, discovered by Johannes
Keukelaar <johannes@nada.kth.se>.
1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkclist.c (gtk_clist_set_row_data_full): Select the row

View File

@ -1,3 +1,9 @@
Tue Mar 24 03:53:18 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbox.c (gtk_box_remove): save the widgets visibility flag for
evaluation after the widget got destroyed, discovered by Johannes
Keukelaar <johannes@nada.kth.se>.
1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkclist.c (gtk_clist_set_row_data_full): Select the row

View File

@ -1,3 +1,9 @@
Tue Mar 24 03:53:18 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbox.c (gtk_box_remove): save the widgets visibility flag for
evaluation after the widget got destroyed, discovered by Johannes
Keukelaar <johannes@nada.kth.se>.
1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkclist.c (gtk_clist_set_row_data_full): Select the row

View File

@ -1,3 +1,9 @@
Tue Mar 24 03:53:18 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbox.c (gtk_box_remove): save the widgets visibility flag for
evaluation after the widget got destroyed, discovered by Johannes
Keukelaar <johannes@nada.kth.se>.
1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkclist.c (gtk_clist_set_row_data_full): Select the row

View File

@ -1,3 +1,9 @@
Tue Mar 24 03:53:18 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbox.c (gtk_box_remove): save the widgets visibility flag for
evaluation after the widget got destroyed, discovered by Johannes
Keukelaar <johannes@nada.kth.se>.
1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkclist.c (gtk_clist_set_row_data_full): Select the row

View File

@ -1,3 +1,9 @@
Tue Mar 24 03:53:18 1998 Tim Janik <timj@gtk.org>
* gtk/gtkbox.c (gtk_box_remove): save the widgets visibility flag for
evaluation after the widget got destroyed, discovered by Johannes
Keukelaar <johannes@nada.kth.se>.
1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkclist.c (gtk_clist_set_row_data_full): Select the row

View File

@ -560,13 +560,16 @@ gtk_box_remove (GtkContainer *container,
if (child->widget == widget)
{
gboolean visible;
visible = GTK_WIDGET_VISIBLE (widget);
gtk_widget_unparent (widget);
box->children = g_list_remove_link (box->children, children);
g_list_free (children);
g_free (child);
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (container))
if (visible && GTK_WIDGET_VISIBLE (container))
gtk_widget_queue_resize (GTK_WIDGET (container));
break;