summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-global-preferences.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 16:41:03 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 16:41:03 +0200
commitbd2d552864805962945aee83d4591019dbffaebc (patch)
tree8c4be2ed697c7b8ea1c3174b61b08507e52faae7 /libcaja-private/caja-global-preferences.c
parent463bd5ef2cbba8d6c3c84a610d26fb5e427c6cab (diff)
downloadcaja-bd2d552864805962945aee83d4591019dbffaebc.tar.bz2
caja-bd2d552864805962945aee83d4591019dbffaebc.tar.xz
convert default-folder-view to gsettings
Diffstat (limited to 'libcaja-private/caja-global-preferences.c')
-rw-r--r--libcaja-private/caja-global-preferences.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/libcaja-private/caja-global-preferences.c b/libcaja-private/caja-global-preferences.c
index 5df398bc..60be7dda 100644
--- a/libcaja-private/caja-global-preferences.c
+++ b/libcaja-private/caja-global-preferences.c
@@ -118,13 +118,6 @@ static EelEnumerationEntry search_bar_type_enum_entries[] =
}
};
-static EelEnumerationEntry default_folder_viewer_enum_entries[] =
-{
- { "icon_view", N_("Icon View"), CAJA_DEFAULT_FOLDER_VIEWER_ICON_VIEW },
- { "compact_view", N_("Compact View"), CAJA_DEFAULT_FOLDER_VIEWER_COMPACT_VIEW },
- { "list_view", N_("List View"), CAJA_DEFAULT_FOLDER_VIEWER_LIST_VIEW }
-};
-
static EelEnumerationEntry default_icon_view_sort_order_enum_entries[] =
{
{ "manually", N_("Manually"), PREFERENCES_SORT_ORDER_MANUALLY },
@@ -267,13 +260,6 @@ static const PreferenceDefault preference_defaults[] =
PREFERENCE_BOOLEAN,
GINT_TO_POINTER (TRUE)
},
- {
- CAJA_PREFERENCES_DEFAULT_FOLDER_VIEWER,
- PREFERENCE_INTEGER,
- GINT_TO_POINTER (CAJA_DEFAULT_FOLDER_VIEWER_ICON_VIEW),
- NULL, NULL,
- "default_folder_viewer"
- },
/* Icon View Default Preferences */
{
@@ -479,9 +465,6 @@ global_preferences_register_enumerations (void)
* populate widgets and route preferences changes between the
* storage (MateConf) and the displayed values.
*/
- eel_enumeration_register ("default_folder_viewer",
- default_folder_viewer_enum_entries,
- G_N_ELEMENTS (default_folder_viewer_enum_entries));
eel_enumeration_register ("default_icon_view_sort_order",
default_icon_view_sort_order_enum_entries,
G_N_ELEMENTS (default_icon_view_sort_order_enum_entries));
@@ -610,7 +593,7 @@ caja_global_preferences_get_default_folder_viewer_preference_as_iid (void)
const char *viewer_iid;
preference_value =
- eel_preferences_get_enum (CAJA_PREFERENCES_DEFAULT_FOLDER_VIEWER);
+ g_settings_get_enum (caja_preferences, CAJA_PREFERENCES_DEFAULT_FOLDER_VIEWER);
if (preference_value == CAJA_DEFAULT_FOLDER_VIEWER_LIST_VIEW)
{