summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-05 22:26:43 +0200
committerStefano Karapetsas <[email protected]>2012-09-05 22:26:43 +0200
commit79b4d49087d25ce067e9e40ab5e9ee7a70228f6a (patch)
treeb573edc56208861a957008d18f816a621d3f24dd /libcaja-private
parent2c7506960cf25b2e35347a95e0eabf9d6acbd8a1 (diff)
downloadcaja-79b4d49087d25ce067e9e40ab5e9ee7a70228f6a.tar.bz2
caja-79b4d49087d25ce067e9e40ab5e9ee7a70228f6a.tar.xz
convert disable-command-line lockdown to gsettings
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-global-preferences.c2
-rw-r--r--libcaja-private/caja-global-preferences.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/libcaja-private/caja-global-preferences.c b/libcaja-private/caja-global-preferences.c
index 4d82e6df..31c86589 100644
--- a/libcaja-private/caja-global-preferences.c
+++ b/libcaja-private/caja-global-preferences.c
@@ -91,6 +91,8 @@ caja_global_preferences_init (void)
caja_tree_sidebar_preferences = g_settings_new("org.mate.caja.sidebar-panels.tree");
caja_list_view_preferences = g_settings_new("org.mate.caja.list-view");
+ mate_lockdown_preferences = g_settings_new("org.mate.desktop.lockdown");
+
caja_mateconf_client = mateconf_client_get_default ();
/* Add monitors for any other MateConf paths we have keys in */
diff --git a/libcaja-private/caja-global-preferences.h b/libcaja-private/caja-global-preferences.h
index efcbbb7e..6ef7f372 100644
--- a/libcaja-private/caja-global-preferences.h
+++ b/libcaja-private/caja-global-preferences.h
@@ -206,8 +206,7 @@ G_BEGIN_DECLS
#define CAJA_PREFERENCES_DESKTOP_NETWORK_NAME "network-icon-name"
/* Lockdown */
-#define CAJA_PREFERENCES_LOCKDOWN_COMMAND_LINE "/desktop/mate/lockdown/disable_command_line"
-#define CAJA_MATECONF_LOCKDOWN_COMMAND_LINE "/desktop/mate/lockdown/disable_command_line"
+#define CAJA_PREFERENCES_LOCKDOWN_COMMAND_LINE "disable-command-line"
void caja_global_preferences_init (void);
@@ -222,6 +221,8 @@ GSettings *caja_tree_sidebar_preferences;
GSettings *caja_compact_view_preferences;
GSettings *caja_list_view_preferences;
+GSettings *mate_lockdown_preferences;
+
MateConfClient *caja_mateconf_client;
G_END_DECLS