[nautilus] search-directory: use g_hash_table_add()



commit 18bf5a4e09137f65d10cfe5448f19e4f183e1ad7
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Oct 15 10:44:19 2012 -0400

    search-directory: use g_hash_table_add()

 libnautilus-private/nautilus-search-directory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-search-directory.c b/libnautilus-private/nautilus-search-directory.c
index 551bd57..f1747d4 100644
--- a/libnautilus-private/nautilus-search-directory.c
+++ b/libnautilus-private/nautilus-search-directory.c
@@ -533,7 +533,7 @@ search_engine_hits_added (NautilusSearchEngine *engine, GList *hits,
 		g_signal_connect (file, "changed", G_CALLBACK (file_changed), search),
 
 		file_list = g_list_prepend (file_list, file);
-		g_hash_table_replace (search->details->files_hash, file, GINT_TO_POINTER (1));
+		g_hash_table_add (search->details->files_hash, file);
 	}
 	
 	search->details->files = g_list_concat (search->details->files, file_list);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]