summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-directory.c')
-rw-r--r--libcaja-private/caja-directory.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libcaja-private/caja-directory.c b/libcaja-private/caja-directory.c
index fb047567..a3bc7fc0 100644
--- a/libcaja-private/caja-directory.c
+++ b/libcaja-private/caja-directory.c
@@ -327,12 +327,10 @@ add_preferences_callbacks (void)
{
caja_global_preferences_init ();
- eel_preferences_add_callback (CAJA_PREFERENCES_SHOW_HIDDEN_FILES,
- filtering_changed_callback,
- NULL);
- eel_preferences_add_callback (CAJA_PREFERENCES_SHOW_BACKUP_FILES,
- filtering_changed_callback,
- NULL);
+ g_signal_connect_swapped (caja_preferences,
+ "changed::" CAJA_PREFERENCES_SHOW_HIDDEN_FILES,
+ G_CALLBACK(filtering_changed_callback),
+ NULL);
eel_preferences_add_callback (CAJA_PREFERENCES_SHOW_TEXT_IN_ICONS,
async_data_preference_changed_callback,
NULL);
@@ -1659,7 +1657,6 @@ void
caja_directory_file_monitor_add (CajaDirectory *directory,
gconstpointer client,
gboolean monitor_hidden_files,
- gboolean monitor_backup_files,
CajaFileAttributes file_attributes,
CajaDirectoryCallback callback,
gpointer callback_data)
@@ -1671,7 +1668,6 @@ caja_directory_file_monitor_add (CajaDirectory *directory,
(CAJA_DIRECTORY_CLASS, directory,
file_monitor_add, (directory, client,
monitor_hidden_files,
- monitor_backup_files,
file_attributes,
callback, callback_data));
}
@@ -1926,7 +1922,7 @@ caja_self_check_directory (void)
caja_directory_file_monitor_add
(directory, &data_dummy,
- TRUE, TRUE, 0, NULL, NULL);
+ TRUE, 0, NULL, NULL);
/* FIXME: these need to be updated to the new metadata infrastructure
* as make check doesn't pass.