summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-global-preferences.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 21:59:16 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 21:59:16 +0200
commitbe3f666650c0da1aac5232291d83a51e127b005e (patch)
tree2d862d6db5c40d7957921e264469cc5dba57c88e /libcaja-private/caja-global-preferences.c
parent45742f8351e2991d54b00189f6e0c772e257f395 (diff)
downloadcaja-be3f666650c0da1aac5232291d83a51e127b005e.tar.bz2
caja-be3f666650c0da1aac5232291d83a51e127b005e.tar.xz
remove latest mateconf stuff
Diffstat (limited to 'libcaja-private/caja-global-preferences.c')
-rw-r--r--libcaja-private/caja-global-preferences.c52
1 files changed, 0 insertions, 52 deletions
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 <eel/eel-enumeration.h>
#include <eel/eel-glib-extensions.h>
#include <eel/eel-gtk-extensions.h>
#include <eel/eel-stock-dialogs.h>
#include <eel/eel-string.h>
#include <glib/gi18n.h>
-/* 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);
}