diff options
author | Frank Worsley <fworsley@shaw.ca> | 2002-06-11 03:42:25 +0000 |
---|---|---|
committer | Frank Worsley <fworsley@src.gnome.org> | 2002-06-11 03:42:25 +0000 |
commit | 97c0382309b55475f5277cf026e7b8898e38f0e2 (patch) | |
tree | 79bc5d241b949bc5a771b103067455d7abdfe9f2 /src/nautilus-navigation-window.c | |
parent | 8e5c3794d48554eaefc231da24db3a3c862eb1bf (diff) | |
download | nautilus-97c0382309b55475f5277cf026e7b8898e38f0e2.tar.gz |
always load the saved window geometry and save the geometry whenever a
2002-06-10 Frank Worsley <fworsley@shaw.ca>
* src/nautilus-application.c:
* src/nautilus-window-manage-views.c:
* src/nautilus-window.c:
* src/nautilus-window.h:
always load the saved window geometry and save the geometry
whenever a window is resized
Diffstat (limited to 'src/nautilus-navigation-window.c')
-rw-r--r-- | src/nautilus-navigation-window.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c index 3aae0577b..483c4d8ce 100644 --- a/src/nautilus-navigation-window.c +++ b/src/nautilus-navigation-window.c @@ -864,15 +864,14 @@ nautilus_window_finalize (GObject *object) G_OBJECT_CLASS (parent_class)->finalize (object); } -static void +void nautilus_window_save_geometry (NautilusWindow *window) { char *geometry_string; - g_assert (NAUTILUS_IS_WINDOW (window)); - g_assert (GTK_WIDGET_VISIBLE (window)); + g_assert (NAUTILUS_IS_WINDOW (window)); - geometry_string = eel_gtk_window_get_geometry_string (GTK_WINDOW (window)); + geometry_string = eel_gtk_window_get_geometry_string (GTK_WINDOW (window)); nautilus_file_set_metadata (window->details->viewed_file, NAUTILUS_METADATA_KEY_WINDOW_GEOMETRY, @@ -884,15 +883,7 @@ nautilus_window_save_geometry (NautilusWindow *window) void nautilus_window_close (NautilusWindow *window) { - g_return_if_fail (NAUTILUS_IS_WINDOW (window)); - - /* Save the window position in the directory's metadata only if - * we're in every-location-in-its-own-window mode. Otherwise it - * would be too apparently random when the stored positions change. - */ - if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_WINDOW_ALWAYS_NEW)) { - nautilus_window_save_geometry (window); - } + g_return_if_fail (NAUTILUS_IS_WINDOW (window)); gtk_widget_destroy (GTK_WIDGET (window)); } |