From 617f5c6f7115357f4c5f92175c9ff4c9be99359c Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 5 Sep 2012 20:18:19 +0200 Subject: convert compact view prefs to gsettings --- libcaja-private/caja-global-preferences.c | 10 +--------- libcaja-private/caja-global-preferences.h | 5 +++-- 2 files changed, 4 insertions(+), 11 deletions(-) (limited to 'libcaja-private') diff --git a/libcaja-private/caja-global-preferences.c b/libcaja-private/caja-global-preferences.c index b0a7e765..4331b858 100644 --- a/libcaja-private/caja-global-preferences.c +++ b/libcaja-private/caja-global-preferences.c @@ -164,15 +164,6 @@ typedef struct */ static const PreferenceDefault preference_defaults[] = { - /* Compact Icon View Default Preferences */ - { - CAJA_PREFERENCES_COMPACT_VIEW_DEFAULT_ZOOM_LEVEL, - PREFERENCE_STRING, - "standard", - NULL, NULL, - "default_zoom_level" - }, - /* List View Default Preferences */ { CAJA_PREFERENCES_LIST_VIEW_DEFAULT_SORT_ORDER, @@ -422,6 +413,7 @@ caja_global_preferences_init (void) caja_media_preferences = g_settings_new("org.mate.media-handling"); caja_window_state = g_settings_new("org.mate.caja.window-state"); caja_icon_view_preferences = g_settings_new("org.mate.caja.icon-view"); + caja_compact_view_preferences = g_settings_new("org.mate.caja.compact-view"); caja_desktop_preferences = g_settings_new("org.mate.caja.desktop"); caja_tree_sidebar_preferences = g_settings_new("org.mate.caja.sidebar-panels.tree"); diff --git a/libcaja-private/caja-global-preferences.h b/libcaja-private/caja-global-preferences.h index e0c9d566..a8bfa6da 100644 --- a/libcaja-private/caja-global-preferences.h +++ b/libcaja-private/caja-global-preferences.h @@ -164,8 +164,8 @@ G_BEGIN_DECLS #define CAJA_PREFERENCES_DESKTOP_TEXT_ELLIPSIS_LIMIT "text-ellipsis-limit" /* Compact View */ -#define CAJA_PREFERENCES_COMPACT_VIEW_DEFAULT_ZOOM_LEVEL "compact_view/default_zoom_level" -#define CAJA_PREFERENCES_COMPACT_VIEW_ALL_COLUMNS_SAME_WIDTH "compact_view/all_columns_have_same_width" +#define CAJA_PREFERENCES_COMPACT_VIEW_DEFAULT_ZOOM_LEVEL "default-zoom-level" +#define CAJA_PREFERENCES_COMPACT_VIEW_ALL_COLUMNS_SAME_WIDTH "all-columns-have-same-width" /* List View */ #define CAJA_PREFERENCES_LIST_VIEW_DEFAULT_SORT_IN_REVERSE_ORDER "list_view/default_sort_in_reverse_order" @@ -232,6 +232,7 @@ GSettings *caja_window_state; GSettings *caja_icon_view_preferences; GSettings *caja_desktop_preferences; GSettings *caja_tree_sidebar_preferences; +GSettings *caja_compact_view_preferences; G_END_DECLS -- cgit v1.2.1