From faa14347351f000690d85d07d0f580679b65e30f Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Wed, 24 Jun 1998 17:15:05 +0000 Subject: do not avoid to queue for a resize if the container is not visible, we Wed Jun 24 16:38:02 1998 Tim Janik * gtk/gtkbin.c (gtk_bin_remove): do not avoid to queue for a resize if the container is not visible, we might be a toplevel! this holds for all other base container implementations as well, that are candidates to derive toplevels from. in general the resizing code will care about visibility itself. * gtk/gtkmenushell.c (gtk_menu_shell_remove): likewise. * gtk/gtkbox.c (gtk_box_remove): likewise. * gtk/gtkwindow.c (gtk_window_move_resize): save ->use_uposition around gtk_window_set_hints(), since we haven't calculated the new position yet. * gdk/gdkwindow.c (gdk_window_get_pointer): take care that *x, *y and *mask are alway initialized in a sane way, regardless of the return value. --- gtk/gtkmenushell.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk/gtkmenushell.c') diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index efb3e9770c..e7afdfa390 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -553,7 +553,10 @@ gtk_menu_shell_remove (GtkContainer *container, gtk_widget_unparent (widget); - if (was_visible && GTK_WIDGET_VISIBLE (container)) + /* queue resize regardless of GTK_WIDGET_VISIBLE (container), + * since that's what is needed by toplevels. + */ + if (was_visible) gtk_widget_queue_resize (GTK_WIDGET (container)); } -- cgit v1.2.1