diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 20:18:19 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 20:18:19 +0200 |
commit | 617f5c6f7115357f4c5f92175c9ff4c9be99359c (patch) | |
tree | d1fb458cf6fbbed05e1c7a7ee0e685e4f1e5c91e /libcaja-private | |
parent | c042e64ccabe8da21f2251301bc0536922d44560 (diff) | |
download | caja-617f5c6f7115357f4c5f92175c9ff4c9be99359c.tar.bz2 caja-617f5c6f7115357f4c5f92175c9ff4c9be99359c.tar.xz |
convert compact view prefs to gsettings
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-global-preferences.c | 10 | ||||
-rw-r--r-- | libcaja-private/caja-global-preferences.h | 5 |
2 files changed, 4 insertions, 11 deletions
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 |