diff options
author | Stefano Karapetsas <[email protected]> | 2012-09-05 12:36:04 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-09-05 12:36:04 +0200 |
commit | 6f15dc7cc1be8b98bbc1f5edd963ff89076295ee (patch) | |
tree | 04a0b2971e10ce57880360f63147b2d137b84b2a /libcaja-private/caja-global-preferences.c | |
parent | 373da58a33a4242f3d91771fd304ba8bb3d55e61 (diff) | |
download | caja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.bz2 caja-6f15dc7cc1be8b98bbc1f5edd963ff89076295ee.tar.xz |
start migration to gsettings
Diffstat (limited to 'libcaja-private/caja-global-preferences.c')
-rw-r--r-- | libcaja-private/caja-global-preferences.c | 85 |
1 files changed, 3 insertions, 82 deletions
diff --git a/libcaja-private/caja-global-preferences.c b/libcaja-private/caja-global-preferences.c index 3097793f..88e8736a 100644 --- a/libcaja-private/caja-global-preferences.c +++ b/libcaja-private/caja-global-preferences.c @@ -49,7 +49,6 @@ static const char *EXTRA_MONITOR_PATHS[] = { "/desktop/mate/file_views", /* Forward declarations */ static void global_preferences_install_defaults (void); static void global_preferences_register_enumerations (void); -static gpointer default_font_callback (void); static gpointer default_home_link_name (void); static gpointer default_computer_link_name (void); static gpointer default_trash_link_name (void); @@ -262,26 +261,6 @@ static const PreferenceDefault preference_defaults[] = GINT_TO_POINTER (TRUE) }, { - CAJA_PREFERENCES_SHOW_HIDDEN_FILES, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (FALSE) - }, - { - CAJA_PREFERENCES_SHOW_BACKUP_FILES, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (FALSE) - }, - { - CAJA_PREFERENCES_CONFIRM_TRASH, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (TRUE) - }, - { - CAJA_PREFERENCES_ENABLE_DELETE, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (FALSE) - }, - { CAJA_PREFERENCES_SHOW_TEXT_IN_ICONS, PREFERENCE_STRING, "local_only", @@ -320,11 +299,6 @@ static const PreferenceDefault preference_defaults[] = GINT_TO_POINTER (TRUE) }, { - CAJA_PREFERENCES_THEME, - PREFERENCE_STRING, - "default" - }, - { CAJA_PREFERENCES_SHOW_IMAGE_FILE_THUMBNAILS, PREFERENCE_STRING, "local_only", @@ -356,16 +330,6 @@ static const PreferenceDefault preference_defaults[] = GINT_TO_POINTER (FALSE) }, { - CAJA_PREFERENCES_SHOW_DESKTOP, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (TRUE) - }, - { - CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (FALSE) - }, - { CAJA_PREFERENCES_SEARCH_BAR_TYPE, PREFERENCE_STRING, "search_by_text", @@ -380,11 +344,6 @@ static const PreferenceDefault preference_defaults[] = NULL }, { - CAJA_PREFERENCES_SIDEBAR_WIDTH, - PREFERENCE_INTEGER, - GINT_TO_POINTER (148) - }, - { CAJA_PREFERENCES_ALWAYS_USE_BROWSER, PREFERENCE_BOOLEAN, GINT_TO_POINTER (TRUE) @@ -450,11 +409,6 @@ static const PreferenceDefault preference_defaults[] = NULL, NULL, "default_folder_viewer" }, - { - CAJA_PREFERENCES_DESKTOP_FONT, - PREFERENCE_STRING, - NULL, default_font_callback, g_free - }, /* Icon View Default Preferences */ { @@ -595,36 +549,6 @@ static const PreferenceDefault preference_defaults[] = }, { - CAJA_PREFERENCES_MEDIA_AUTOMOUNT, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (TRUE) - }, - { - CAJA_PREFERENCES_MEDIA_AUTOMOUNT_OPEN, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (TRUE) - }, - { - CAJA_PREFERENCES_MEDIA_AUTORUN_NEVER, - PREFERENCE_BOOLEAN, - GINT_TO_POINTER (FALSE) - }, - { - CAJA_PREFERENCES_MEDIA_AUTORUN_X_CONTENT_START_APP, - PREFERENCE_STRING_ARRAY, - "", NULL, NULL, NULL - }, - { - CAJA_PREFERENCES_MEDIA_AUTORUN_X_CONTENT_IGNORE, - PREFERENCE_STRING_ARRAY, - "", NULL, NULL, NULL - }, - { - CAJA_PREFERENCES_MEDIA_AUTORUN_X_CONTENT_OPEN_FOLDER, - PREFERENCE_STRING_ARRAY, - "", NULL, NULL, NULL - }, - { CAJA_PREFERENCES_DESKTOP_TEXT_ELLIPSIS_LIMIT, PREFERENCE_INTEGER, GINT_TO_POINTER (3) @@ -838,12 +762,6 @@ global_preferences_install_defaults (void) } } -static gpointer -default_font_callback (void) -{ - return g_strdup ("sans 12"); -} - /* * Public functions */ @@ -928,6 +846,9 @@ caja_global_preferences_init (void) { eel_preferences_monitor_directory (EXTRA_MONITOR_PATHS[i]); } + + caja_preferences = g_settings_new("org.mate.caja.preferences"); + caja_media_preferences = g_settings_new("org.mate.media-handling"); /* Set up storage for values accessed in this file */ eel_preferences_add_callback (CAJA_PREFERENCES_ICON_VIEW_DEFAULT_SORT_ORDER_OR_MANUAL_LAYOUT, |