diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 12:44:38 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 12:44:38 +0200 |
commit | cf3e02237f89593e6e03065ced3af2835e915ee0 (patch) | |
tree | 18ff4cd57c891f0be7a14e50520210b2b4c25a58 | |
parent | 6f15dc7cc1be8b98bbc1f5edd963ff89076295ee (diff) | |
download | caja-cf3e02237f89593e6e03065ced3af2835e915ee0.tar.bz2 caja-cf3e02237f89593e6e03065ced3af2835e915ee0.tar.xz |
convert show-advanced-persmissions to gsettings
-rw-r--r-- | libcaja-private/caja-global-preferences.c | 5 | ||||
-rw-r--r-- | libcaja-private/caja-global-preferences.h | 2 | ||||
-rw-r--r-- | src/file-manager/fm-properties-window.c | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/libcaja-private/caja-global-preferences.c b/libcaja-private/caja-global-preferences.c index 88e8736a..e9f4f255 100644 --- a/libcaja-private/caja-global-preferences.c +++ b/libcaja-private/caja-global-preferences.c @@ -320,11 +320,6 @@ static const PreferenceDefault preference_defaults[] = "speed_tradeoff" }, { - CAJA_PREFERENCES_SHOW_ADVANCED_PERMISSIONS, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (FALSE) - }, - { CAJA_PREFERENCES_SORT_DIRECTORIES_FIRST, PREFERENCE_BOOLEAN, GINT_TO_POINTER (FALSE) diff --git a/libcaja-private/caja-global-preferences.h b/libcaja-private/caja-global-preferences.h index 05dd797a..23ddd328 100644 --- a/libcaja-private/caja-global-preferences.h +++ b/libcaja-private/caja-global-preferences.h @@ -68,7 +68,7 @@ G_BEGIN_DECLS /* Display */ #define CAJA_PREFERENCES_SHOW_HIDDEN_FILES "show-hidden-files" -#define CAJA_PREFERENCES_SHOW_ADVANCED_PERMISSIONS "preferences/show_advanced_permissions" +#define CAJA_PREFERENCES_SHOW_ADVANCED_PERMISSIONS "show-advanced-permissions" #define CAJA_PREFERENCES_DATE_FORMAT "preferences/date_format" /* Mouse */ diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index 935cdfac..88fc5e0d 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -4846,7 +4846,7 @@ create_permissions_page (FMPropertiesWindow *window) GTK_WIDGET (page_table), TRUE, TRUE, 0); - if (eel_preferences_get_boolean (CAJA_PREFERENCES_SHOW_ADVANCED_PERMISSIONS)) { + if (g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_SHOW_ADVANCED_PERMISSIONS)) { window->details->advanced_permissions = TRUE; create_advanced_permissions (window, page_table); } else { |