Remember whether the widget was visible before we unparent it.
1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx> * gtk/gtkbin.c (gtk_bin_remove): Remember whether the widget was visible before we unparent it.
This commit is contained in:
committed by
Arturo Espinosa
parent
f83adda582
commit
9546a9dc14
@@ -1,3 +1,8 @@
|
||||
1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkbin.c (gtk_bin_remove): Remember whether the widget was
|
||||
visible before we unparent it.
|
||||
|
||||
Wed Apr 22 04:15:26 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkmain.c (gtk_handle_current_timeouts): prepend the
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkbin.c (gtk_bin_remove): Remember whether the widget was
|
||||
visible before we unparent it.
|
||||
|
||||
Wed Apr 22 04:15:26 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkmain.c (gtk_handle_current_timeouts): prepend the
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkbin.c (gtk_bin_remove): Remember whether the widget was
|
||||
visible before we unparent it.
|
||||
|
||||
Wed Apr 22 04:15:26 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkmain.c (gtk_handle_current_timeouts): prepend the
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkbin.c (gtk_bin_remove): Remember whether the widget was
|
||||
visible before we unparent it.
|
||||
|
||||
Wed Apr 22 04:15:26 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkmain.c (gtk_handle_current_timeouts): prepend the
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkbin.c (gtk_bin_remove): Remember whether the widget was
|
||||
visible before we unparent it.
|
||||
|
||||
Wed Apr 22 04:15:26 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkmain.c (gtk_handle_current_timeouts): prepend the
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkbin.c (gtk_bin_remove): Remember whether the widget was
|
||||
visible before we unparent it.
|
||||
|
||||
Wed Apr 22 04:15:26 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkmain.c (gtk_handle_current_timeouts): prepend the
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
1998-04-22 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkbin.c (gtk_bin_remove): Remember whether the widget was
|
||||
visible before we unparent it.
|
||||
|
||||
Wed Apr 22 04:15:26 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* gtk/gtkmain.c (gtk_handle_current_timeouts): prepend the
|
||||
|
||||
@@ -237,10 +237,12 @@ gtk_bin_remove (GtkContainer *container,
|
||||
|
||||
if (bin->child == widget)
|
||||
{
|
||||
gboolean widget_was_visible = GTK_WIDGET_VISIBLE (widget);
|
||||
|
||||
gtk_widget_unparent (widget);
|
||||
bin->child = NULL;
|
||||
|
||||
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (container))
|
||||
if (widget_was_visible && GTK_WIDGET_VISIBLE (container))
|
||||
gtk_widget_queue_resize (GTK_WIDGET (container));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user