summaryrefslogtreecommitdiff
path: root/src/nautilus-window-bookmarks.c
diff options
context:
space:
mode:
authorChristian Neumair <chris@gnome-de.org>2005-10-18 15:44:29 +0000
committerChristian Neumair <cneumair@src.gnome.org>2005-10-18 15:44:29 +0000
commitf96e824b79186614b23c410e61c1c52377703305 (patch)
tree5e8912a99e5b6fcf578b05e5b1e47537c875c169 /src/nautilus-window-bookmarks.c
parenta1e8e44293b8e395cdc3669acaef2241ae61be63 (diff)
downloadnautilus-f96e824b79186614b23c410e61c1c52377703305.tar.gz
Skip nonexistant bookmarks in menus/sidebar. Fixes #312507.
2005-10-18 Christian Neumair <chris@gnome-de.org> * src/nautilus-places-sidebar.c: (update_places): * src/nautilus-window-bookmarks.c: (update_bookmarks): Skip nonexistant bookmarks in menus/sidebar. Fixes #312507.
Diffstat (limited to 'src/nautilus-window-bookmarks.c')
-rw-r--r--src/nautilus-window-bookmarks.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/nautilus-window-bookmarks.c b/src/nautilus-window-bookmarks.c
index dc9ca23b0..f60a33cd6 100644
--- a/src/nautilus-window-bookmarks.c
+++ b/src/nautilus-window-bookmarks.c
@@ -202,6 +202,7 @@ static void
update_bookmarks (NautilusWindow *window)
{
NautilusBookmarkList *bookmarks;
+ NautilusBookmark *bookmark;
guint bookmark_count;
guint index;
GtkUIManager *ui_manager;
@@ -225,9 +226,15 @@ update_bookmarks (NautilusWindow *window)
/* append new set of bookmarks */
bookmark_count = nautilus_bookmark_list_length (bookmarks);
for (index = 0; index < bookmark_count; ++index) {
+ bookmark = nautilus_bookmark_list_item_at (bookmarks, index);
+
+ if (nautilus_bookmark_uri_known_not_to_exist (bookmark)) {
+ continue;
+ }
+
nautilus_menus_append_bookmark_to_menu
- (NAUTILUS_WINDOW (window),
- nautilus_bookmark_list_item_at (bookmarks, index),
+ (NAUTILUS_WINDOW (window),
+ bookmark,
NAUTILUS_WINDOW_GET_CLASS (window)->bookmarks_placeholder,
"dynamic",
index,