diff options
author | Frank Worsley <fworsley@shaw.ca> | 2002-07-18 05:58:23 +0000 |
---|---|---|
committer | Frank Worsley <fworsley@src.gnome.org> | 2002-07-18 05:58:23 +0000 |
commit | 4552eb2e3c21033163da82aa115e4a4db4900ca3 (patch) | |
tree | 1a09b1c9b23f025d37ae262ab3f9866e816995b7 /src/nautilus-window.c | |
parent | e501c9f92b15adb0e86c73815e647691d51edce3 (diff) | |
download | nautilus-4552eb2e3c21033163da82aa115e4a4db4900ca3.tar.gz |
improve saving of geometry. only save it if we really resize a window, not
2002-07-17 Frank Worsley <fworsley@shaw.ca>
* src/nautilus-application.c: (save_window_geometry_timeout),
(nautilus_window_configure_event_callback),
(nautilus_window_unrealize_event_callback):
improve saving of geometry. only save it if we really resize
a window, not when a window is first shown or viewport change
* src/nautilus-shell.c: (open_window):
* src/nautilus-bookmarks-window.c:
(nautilus_bookmarks_window_restore_geometry):
update for changed eel function
* src/nautilus-window-manage-views.c:
(pending_location_already_showing): added new
(position_and_show_window_callback):
ignore saved window position if same window already showing
* src/nautilus-window.c: (nautilus_window_instance_init),
(nautilus_window_save_geometry):
* src/nautilus-window.h:
updated for new eel function and changes described above
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r-- | src/nautilus-window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c index 0fb94e49d..134c41e3c 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -179,6 +179,9 @@ nautilus_window_instance_init (NautilusWindow *window) g_object_ref (G_OBJECT (window->details->tooltips)); gtk_object_sink (GTK_OBJECT (window->details->tooltips)); + /* Set last geometry to NULL */ + window->last_geometry = NULL; + /* Set initial window title */ gtk_window_set_title (GTK_WINDOW (window), _("Nautilus")); @@ -876,6 +879,7 @@ nautilus_window_save_geometry (NautilusWindow *window) NAUTILUS_METADATA_KEY_WINDOW_GEOMETRY, NULL, geometry_string); + g_free (geometry_string); } |