diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-03-13 03:32:11 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-03-13 03:32:11 +0000 |
commit | a83b61586373281f4c1ce3013848b0ee28a92c21 (patch) | |
tree | 345fdd8c8fc530d1b5386551dd8232bea0f63dd6 /gtk/gtkwindow.c | |
parent | 26d8e728528800ca9668eeeff2e7b31ec9676991 (diff) | |
download | gtk+-a83b61586373281f4c1ce3013848b0ee28a92c21.tar.gz |
Don't for the creation of geometry info here. (#114533)
2006-03-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_compute_configure_request): Don't
for the creation of geometry info here. (#114533)
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r-- | gtk/gtkwindow.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index c2a218ec40..d59ff6553f 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -5260,12 +5260,21 @@ gtk_window_compute_configure_request (GtkWindow *window, parent_widget = (GtkWidget*) window->transient_parent; pos = get_effective_position (window); - info = gtk_window_get_geometry_info (window, TRUE); - - /* by default, don't change position requested */ - x = info->last.configure_request.x; - y = info->last.configure_request.y; + info = gtk_window_get_geometry_info (window, FALSE); + /* by default, don't change position requested */ + if (info) + { + x = info->last.configure_request.x; + y = info->last.configure_request.y; + } + else + { + x = 0; + y = 0; + } + + if (window->need_default_position) { @@ -5358,7 +5367,7 @@ gtk_window_compute_configure_request (GtkWindow *window, } } /* if (window->need_default_position) */ - if (window->need_default_position && + if (window->need_default_position && info && info->initial_pos_set) { x = info->initial_x; |