[nautilus] Convert show-advanced-persmissions to gsettings
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Convert show-advanced-persmissions to gsettings
- Date: Fri, 23 Jul 2010 10:32:17 +0000 (UTC)
commit 7abbb99a0e16be6050d61719a6b69197746ed7e4
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jul 22 12:16:04 2010 +0200
Convert show-advanced-persmissions to gsettings
libnautilus-private/nautilus-global-preferences.c | 4 ----
libnautilus-private/nautilus-global-preferences.h | 2 +-
src/file-manager/fm-properties-window.c | 2 +-
3 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libnautilus-private/nautilus-global-preferences.c b/libnautilus-private/nautilus-global-preferences.c
index 9b21e31..c2b5e13 100644
--- a/libnautilus-private/nautilus-global-preferences.c
+++ b/libnautilus-private/nautilus-global-preferences.c
@@ -290,10 +290,6 @@ static const PreferenceDefault preference_defaults[] = {
NULL, NULL,
"speed_tradeoff"
},
- { NAUTILUS_PREFERENCES_SHOW_ADVANCED_PERMISSIONS,
- PREFERENCE_BOOLEAN,
- GINT_TO_POINTER (FALSE)
- },
{ NAUTILUS_PREFERENCES_SORT_DIRECTORIES_FIRST,
PREFERENCE_BOOLEAN,
GINT_TO_POINTER (FALSE)
diff --git a/libnautilus-private/nautilus-global-preferences.h b/libnautilus-private/nautilus-global-preferences.h
index bf73a31..ffe14bc 100644
--- a/libnautilus-private/nautilus-global-preferences.h
+++ b/libnautilus-private/nautilus-global-preferences.h
@@ -68,7 +68,7 @@ G_BEGIN_DECLS
/* Display */
#define NAUTILUS_PREFERENCES_SHOW_HIDDEN_FILES "show-hidden-files"
-#define NAUTILUS_PREFERENCES_SHOW_ADVANCED_PERMISSIONS "preferences/show_advanced_permissions"
+#define NAUTILUS_PREFERENCES_SHOW_ADVANCED_PERMISSIONS "show-advanced-permissions"
#define NAUTILUS_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 f17e704..4328481 100644
--- a/src/file-manager/fm-properties-window.c
+++ b/src/file-manager/fm-properties-window.c
@@ -4834,7 +4834,7 @@ create_permissions_page (FMPropertiesWindow *window)
GTK_WIDGET (page_table),
TRUE, TRUE, 0);
- if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_SHOW_ADVANCED_PERMISSIONS)) {
+ if (g_settings_get_boolean (nautilus_preferences, NAUTILUS_PREFERENCES_SHOW_ADVANCED_PERMISSIONS)) {
window->details->advanced_permissions = TRUE;
create_advanced_permissions (window, page_table);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]