From cf3e02237f89593e6e03065ced3af2835e915ee0 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 5 Sep 2012 12:44:38 +0200 Subject: convert show-advanced-persmissions to gsettings --- libcaja-private/caja-global-preferences.c | 5 ----- libcaja-private/caja-global-preferences.h | 2 +- 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 @@ -319,11 +319,6 @@ static const PreferenceDefault preference_defaults[] = NULL, NULL, "speed_tradeoff" }, - { - CAJA_PREFERENCES_SHOW_ADVANCED_PERMISSIONS, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (FALSE) - }, { CAJA_PREFERENCES_SORT_DIRECTORIES_FIRST, PREFERENCE_BOOLEAN, 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 { -- cgit v1.2.1