summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 20:10:22 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 20:10:22 +0200
commitc042e64ccabe8da21f2251301bc0536922d44560 (patch)
treed4aa2d6f9568fb7c77879e60c2bc8d19a2513421 /libcaja-private
parent245d15cb31565d31bdb380b8a689489732748ac5 (diff)
downloadcaja-c042e64ccabe8da21f2251301bc0536922d44560.tar.bz2
caja-c042e64ccabe8da21f2251301bc0536922d44560.tar.xz
convert tree sidebar prefs to gsettings
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-global-preferences.c7
-rw-r--r--libcaja-private/caja-global-preferences.h3
2 files changed, 3 insertions, 7 deletions
diff --git a/libcaja-private/caja-global-preferences.c b/libcaja-private/caja-global-preferences.c
index 94da8a82..b0a7e765 100644
--- a/libcaja-private/caja-global-preferences.c
+++ b/libcaja-private/caja-global-preferences.c
@@ -164,12 +164,6 @@ typedef struct
*/
static const PreferenceDefault preference_defaults[] =
{
- {
- CAJA_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES,
- PREFERENCE_BOOLEAN,
- GINT_TO_POINTER (TRUE)
- },
-
/* Compact Icon View Default Preferences */
{
CAJA_PREFERENCES_COMPACT_VIEW_DEFAULT_ZOOM_LEVEL,
@@ -429,6 +423,7 @@ caja_global_preferences_init (void)
caja_window_state = g_settings_new("org.mate.caja.window-state");
caja_icon_view_preferences = g_settings_new("org.mate.caja.icon-view");
caja_desktop_preferences = g_settings_new("org.mate.caja.desktop");
+ caja_tree_sidebar_preferences = g_settings_new("org.mate.caja.sidebar-panels.tree");
/* Set up storage for values accessed in this file */
g_signal_connect_swapped (caja_icon_view_preferences,
diff --git a/libcaja-private/caja-global-preferences.h b/libcaja-private/caja-global-preferences.h
index 73c67552..e0c9d566 100644
--- a/libcaja-private/caja-global-preferences.h
+++ b/libcaja-private/caja-global-preferences.h
@@ -88,7 +88,7 @@ G_BEGIN_DECLS
} CajaNewTabPosition;
/* Sidebar panels */
-#define CAJA_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES "sidebar_panels/tree/show_only_directories"
+#define CAJA_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES "show-only-directories"
/* Single/Double click preference */
#define CAJA_PREFERENCES_CLICK_POLICY "click-policy"
@@ -231,6 +231,7 @@ GSettings *caja_media_preferences;
GSettings *caja_window_state;
GSettings *caja_icon_view_preferences;
GSettings *caja_desktop_preferences;
+GSettings *caja_tree_sidebar_preferences;
G_END_DECLS