summaryrefslogtreecommitdiff
path: root/src/nautilus-window.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2003-03-27 14:20:05 +0000
committerAlexander Larsson <alexl@src.gnome.org>2003-03-27 14:20:05 +0000
commit15b28812ac110eec70e60fd92397d21040b2b4d1 (patch)
tree80a102f55781eede7ce591228fbf100c30aca72a /src/nautilus-window.c
parent3f61d67299b67d636a357ccefe2afbcee15f2c68 (diff)
downloadnautilus-15b28812ac110eec70e60fd92397d21040b2b4d1.tar.gz
Don't save the location bar enabled prefs when showing it temporarily.
2003-03-27 Alexander Larsson <alexl@redhat.com> * src/nautilus-window.h: * src/nautilus-window.c: * src/nautilus-window-menus.c: Don't save the location bar enabled prefs when showing it temporarily.
Diffstat (limited to 'src/nautilus-window.c')
-rw-r--r--src/nautilus-window.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index f9f336e80..026a9e8b1 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -384,7 +384,7 @@ navigation_bar_location_changed_callback (GtkWidget *widget,
if (window->details->temporary_navigation_bar) {
if (nautilus_window_location_bar_showing (window)) {
- nautilus_window_hide_location_bar (window);
+ nautilus_window_hide_location_bar (window, FALSE);
}
window->details->temporary_navigation_bar = FALSE;
}
@@ -2013,18 +2013,22 @@ dock_item_showing (NautilusWindow *window, const char *dock_item_path)
}
void
-nautilus_window_hide_location_bar (NautilusWindow *window)
+nautilus_window_hide_location_bar (NautilusWindow *window, gboolean save_preference)
{
window->details->temporary_navigation_bar = FALSE;
hide_dock_item (window, LOCATION_BAR_PATH);
- eel_preferences_set_boolean (NAUTILUS_PREFERENCES_START_WITH_LOCATION_BAR, FALSE);
+ if (save_preference) {
+ eel_preferences_set_boolean (NAUTILUS_PREFERENCES_START_WITH_LOCATION_BAR, FALSE);
+ }
}
void
-nautilus_window_show_location_bar (NautilusWindow *window)
+nautilus_window_show_location_bar (NautilusWindow *window, gboolean save_preference)
{
show_dock_item (window, LOCATION_BAR_PATH);
- eel_preferences_set_boolean (NAUTILUS_PREFERENCES_START_WITH_LOCATION_BAR, TRUE);
+ if (save_preference) {
+ eel_preferences_set_boolean (NAUTILUS_PREFERENCES_START_WITH_LOCATION_BAR, TRUE);
+ }
}
gboolean
@@ -2164,9 +2168,9 @@ nautilus_window_show (GtkWidget *widget)
}
if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_START_WITH_LOCATION_BAR)) {
- nautilus_window_show_location_bar (window);
+ nautilus_window_show_location_bar (window, FALSE);
} else {
- nautilus_window_hide_location_bar (window);
+ nautilus_window_hide_location_bar (window, FALSE);
}
if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_START_WITH_STATUS_BAR)) {