summaryrefslogtreecommitdiff
path: root/src/nautilus-window-manage-views.c
diff options
context:
space:
mode:
authorMichael Meeks <michael@ximian.com>2002-01-25 12:22:25 +0000
committerMichael Meeks <michael@src.gnome.org>2002-01-25 12:22:25 +0000
commit45d43076d643603a851a65b5aa8972311a30338a (patch)
tree54bbee974039865136c87cb889eeaf47df623094 /src/nautilus-window-manage-views.c
parentcae57667952819daaf1e6b5ad67b83f255a0b84b (diff)
downloadnautilus-45d43076d643603a851a65b5aa8972311a30338a.tar.gz
return a 'changed' boolean.
2002-01-25 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-bookmark.c (nautilus_bookmark_set_name): return a 'changed' boolean. * src/nautilus-window-manage-views.c (update_title): only re-send history if it changed. * src/nautilus-window.c (add_to_history_list): prune the end of the list more succinctly, don't fire send_history_list_changed if we didn't change the list.
Diffstat (limited to 'src/nautilus-window-manage-views.c')
-rw-r--r--src/nautilus-window-manage-views.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 6bed77b3b..a05c0399c 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -263,10 +263,12 @@ update_title (NautilusWindow *window)
if (window->sidebar != NULL) {
nautilus_sidebar_set_title (window->sidebar, title);
}
- nautilus_bookmark_set_name (window->current_location_bookmark, title);
- /* Name of item in history list may have changed, tell listeners. */
- nautilus_send_history_list_changed ();
+ if (title [0] != '\0' &&
+ nautilus_bookmark_set_name (window->current_location_bookmark, title)) {
+ /* Name of item in history list changed, tell listeners. */
+ nautilus_send_history_list_changed ();
+ }
/* warn all views and sidebar panels of the potential title change */
if (window->content_view != NULL) {