From be3f666650c0da1aac5232291d83a51e127b005e Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 5 Sep 2012 21:59:16 +0200 Subject: remove latest mateconf stuff --- libcaja-private/caja-global-preferences.c | 52 ------------------------------- 1 file changed, 52 deletions(-) (limited to 'libcaja-private/caja-global-preferences.c') diff --git a/libcaja-private/caja-global-preferences.c b/libcaja-private/caja-global-preferences.c index 7465add7..4d82e6df 100644 --- a/libcaja-private/caja-global-preferences.c +++ b/libcaja-private/caja-global-preferences.c @@ -28,17 +28,12 @@ #include "caja-file-utilities.h" #include "caja-file.h" -#include #include #include #include #include #include -/* Constants */ -#define STRING_ARRAY_DEFAULT_TOKENS_DELIMETER "," -#define PREFERENCES_SORT_ORDER_MANUALLY 100 - /* Path for mate-vfs preferences */ static const char *EXTRA_MONITOR_PATHS[] = { "/desktop/mate/background", @@ -46,33 +41,6 @@ static const char *EXTRA_MONITOR_PATHS[] = { NULL }; -/* An enumeration used for installing type specific preferences defaults. */ -typedef enum -{ - PREFERENCE_BOOLEAN = 1, - PREFERENCE_INTEGER, - PREFERENCE_STRING, - PREFERENCE_STRING_ARRAY -} PreferenceType; - -/* - * A callback which can be used to fetch dynamic fallback values. - * For example, values that are dependent on the environment (such as user name) - * cannot be specified as constants. - */ -typedef gpointer (*PreferencesDefaultValueCallback) (void); - -/* A structure that describes a single preference including defaults and visibility. */ -typedef struct -{ - const char *name; - PreferenceType type; - const gpointer fallback_value; - PreferencesDefaultValueCallback fallback_callback; - GFreeFunc fallback_callback_result_free_function; - const char *enumeration_id; -} PreferenceDefault; - /* * Public functions */ @@ -113,8 +81,6 @@ caja_global_preferences_init (void) } initialized = TRUE; - - eel_preferences_init ("/apps/caja"); caja_preferences = g_settings_new("org.mate.caja.preferences"); caja_media_preferences = g_settings_new("org.mate.media-handling"); @@ -134,22 +100,4 @@ caja_global_preferences_init (void) MATECONF_CLIENT_PRELOAD_ONELEVEL, NULL); } - - /* Preload everything in a big batch */ - eel_mateconf_preload_cache ("/apps/caja/preferences", - MATECONF_CLIENT_PRELOAD_ONELEVEL); - eel_mateconf_preload_cache ("/desktop/mate/file_views", - MATECONF_CLIENT_PRELOAD_ONELEVEL); - eel_mateconf_preload_cache ("/desktop/mate/background", - MATECONF_CLIENT_PRELOAD_ONELEVEL); - eel_mateconf_preload_cache ("/desktop/mate/lockdown", - MATECONF_CLIENT_PRELOAD_ONELEVEL); - - /* These are always needed for the desktop */ - eel_mateconf_preload_cache ("/apps/caja/desktop", - MATECONF_CLIENT_PRELOAD_ONELEVEL); - eel_mateconf_preload_cache ("/apps/caja/icon_view", - MATECONF_CLIENT_PRELOAD_ONELEVEL); - eel_mateconf_preload_cache ("/apps/caja/desktop-metadata", - MATECONF_CLIENT_PRELOAD_RECURSIVE); } -- cgit v1.2.1