summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-06-24 17:15:05 +0000
committerTim Janik <timj@src.gnome.org>1998-06-24 17:15:05 +0000
commitfaa14347351f000690d85d07d0f580679b65e30f (patch)
treefd85231950d0b5e37f3c00107da4494964b1013a /gtk/gtkwindow.c
parent11f55887557e07a3d29a547cdfa110ddb0b705b2 (diff)
downloadgtk+-faa14347351f000690d85d07d0f580679b65e30f.tar.gz
do not avoid to queue for a resize if the container is not visible, we
Wed Jun 24 16:38:02 1998 Tim Janik <timj@gtk.org> * 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.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 08c66781fb..b2b40e49ad 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -991,10 +991,16 @@ gtk_window_move_resize (GtkWindow *window)
width = widget->requisition.width;
height = widget->requisition.height;
gtk_widget_size_request (widget, &widget->requisition);
-
+
if ((width != widget->requisition.width ||
height != widget->requisition.height))
- gtk_window_set_hints (widget, &widget->requisition);
+ {
+ gboolean saved_use_upos;
+
+ saved_use_upos = window->use_uposition;
+ gtk_window_set_hints (widget, &widget->requisition);
+ window->use_uposition = saved_use_upos;
+ }
x = -1;
y = -1;