2007-04-20 Federico Mena Quintero * src/nautilus-window-manage-views.c (set_displayed_location): If this is a desktop window, do nothing and return immediately. The desktop window doesn't need an updated title, icon, nor list of bookmarks. This lets us avoid expensive operations when reading the thumbnail list to create the bookmark for the current location. --- src/nautilus-window-manage-views.c 4 Apr 2007 18:07:22 -0000 1.1.1.1 +++ src/nautilus-window-manage-views.c 20 Apr 2007 18:55:54 -0000 @@ -125,6 +125,16 @@ set_displayed_location (NautilusWindow * { char *bookmark_uri; gboolean recreate; + + if (NAUTILUS_IS_DESKTOP_WINDOW (window)) { + /* The desktop window does not have a title or an icon, and it + * does not have a "Go to" menu which would be in need of an + * updated list of bookmarks. So, for the desktop window we + * don't need to do anything here. This lets us avoid loading + * thubmnails expensively for the bookmark icon. + */ + return; + } if (window->current_location_bookmark == NULL || location == NULL) { recreate = TRUE;