summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-desktop-directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-desktop-directory.c')
-rw-r--r--libcaja-private/caja-desktop-directory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcaja-private/caja-desktop-directory.c b/libcaja-private/caja-desktop-directory.c
index bb03f06a..de998cd2 100644
--- a/libcaja-private/caja-desktop-directory.c
+++ b/libcaja-private/caja-desktop-directory.c
@@ -480,8 +480,8 @@ update_desktop_directory (CajaDesktopDirectory *desktop)
real_directory = desktop->details->real_directory;
if (real_directory != NULL)
{
- g_hash_table_foreach_remove (desktop->details->callbacks, (GHRFunc) gtk_true, NULL);
- g_hash_table_foreach_remove (desktop->details->monitors, (GHRFunc) gtk_true, NULL);
+ g_hash_table_remove_all (desktop->details->callbacks);
+ g_hash_table_remove_all (desktop->details->monitors);
g_signal_handlers_disconnect_by_func (real_directory, done_loading_callback, desktop);
g_signal_handlers_disconnect_by_func (real_directory, forward_files_added_cover, desktop);