summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file-utilities.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-file-utilities.c')
-rw-r--r--libcaja-private/caja-file-utilities.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libcaja-private/caja-file-utilities.c b/libcaja-private/caja-file-utilities.c
index 0748364a..7b0647a8 100644
--- a/libcaja-private/caja-file-utilities.c
+++ b/libcaja-private/caja-file-utilities.c
@@ -510,7 +510,7 @@ caja_get_xdg_dir (const char *type)
static char *
get_desktop_path (void)
{
- if (eel_preferences_get_boolean (CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR))
+ if (g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR))
{
return g_strdup (g_get_home_dir());
}
@@ -535,7 +535,7 @@ caja_get_desktop_directory (void)
desktop_directory = get_desktop_path ();
/* Don't try to create a home directory */
- if (!eel_preferences_get_boolean (CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR))
+ if (!g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR))
{
if (!g_file_test (desktop_directory, G_FILE_TEST_EXISTS))
{
@@ -765,9 +765,9 @@ caja_is_desktop_directory_file (GFile *dir,
if (!desktop_dir_changed_callback_installed)
{
- eel_preferences_add_callback (CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
- desktop_dir_changed_callback,
- NULL);
+ g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
+ G_CALLBACK(desktop_dir_changed_callback),
+ NULL);
desktop_dir_changed_callback_installed = TRUE;
}