[nautilus] places-sidebar: always add Home as a built-in place
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] places-sidebar: always add Home as a built-in place
- Date: Wed, 6 Apr 2011 16:25:07 +0000 (UTC)
commit ec447586d5f7a5f60f21436a868cfe28d315f1f1
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 6 11:12:44 2011 -0400
places-sidebar: always add Home as a built-in place
src/nautilus-places-sidebar.c | 29 +++++++++++++----------------
1 files changed, 13 insertions(+), 16 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index 5a604a7..4bfc074 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -639,28 +639,25 @@ update_places (NautilusPlacesSidebar *sidebar)
_("Computer"));
/* add built in bookmarks */
- desktop_path = nautilus_get_desktop_directory ();
/* home folder */
- if (strcmp (g_get_home_dir(), desktop_path) != 0) {
- mount_uri = nautilus_get_home_directory_uri ();
- icon = g_themed_icon_new (NAUTILUS_ICON_HOME);
- last_iter = add_place (sidebar, PLACES_BUILT_IN,
- SECTION_COMPUTER,
- _("Home"), icon,
- mount_uri, NULL, NULL, NULL, 0,
- _("Open your personal folder"));
- g_object_unref (icon);
- compare_for_selection (sidebar,
- location, mount_uri, last_uri,
- &last_iter, &select_path);
- g_free (mount_uri);
- }
-
+ mount_uri = nautilus_get_home_directory_uri ();
+ icon = g_themed_icon_new (NAUTILUS_ICON_HOME);
+ last_iter = add_place (sidebar, PLACES_BUILT_IN,
+ SECTION_COMPUTER,
+ _("Home"), icon,
+ mount_uri, NULL, NULL, NULL, 0,
+ _("Open your personal folder"));
+ g_object_unref (icon);
+ compare_for_selection (sidebar,
+ location, mount_uri, last_uri,
+ &last_iter, &select_path);
+ g_free (mount_uri);
if (g_settings_get_boolean (gnome_background_preferences, NAUTILUS_PREFERENCES_SHOW_DESKTOP) &&
!g_settings_get_boolean (nautilus_preferences, NAUTILUS_PREFERENCES_DESKTOP_IS_HOME_DIR)) {
/* desktop */
+ desktop_path = nautilus_get_desktop_directory ();
mount_uri = g_filename_to_uri (desktop_path, NULL, NULL);
icon = g_themed_icon_new (NAUTILUS_ICON_DESKTOP);
last_iter = add_place (sidebar, PLACES_BUILT_IN,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]