aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-06-14 04:42:20 +0000
committerChristian Grothoff <christian@grothoff.org>2008-06-14 04:42:20 +0000
commit4cda2090de1560e242af44c0a05c990f3c5ea53e (patch)
treee84d24abd3d90146620b27564e2a8ccc6b772dbb
parentb2dc853d38ef256c3cc7c1073ba40792c81cb8c6 (diff)
downloadgnunet-gtk-4cda2090de1560e242af44c0a05c990f3c5ea53e.tar.gz
gnunet-gtk-4cda2090de1560e242af44c0a05c990f3c5ea53e.zip
filter needed on search updates
-rw-r--r--src/plugins/fs/search.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c
index e282bf1e..f1e8537f 100644
--- a/src/plugins/fs/search.c
+++ b/src/plugins/fs/search.c
@@ -339,6 +339,7 @@ fs_search_update (SearchList * searchContext,
339 unsigned int availability_certainty, 339 unsigned int availability_certainty,
340 unsigned int applicability_rank) 340 unsigned int applicability_rank)
341{ 341{
342 enum GNUNET_URITRACK_STATE state;
342 GtkTreeStore *model; 343 GtkTreeStore *model;
343 GtkTreeIter iter; 344 GtkTreeIter iter;
344 struct GNUNET_ECRS_URI *have; 345 struct GNUNET_ECRS_URI *have;
@@ -346,6 +347,14 @@ fs_search_update (SearchList * searchContext,
346 long long rank; 347 long long rank;
347 unsigned int kwords; 348 unsigned int kwords;
348 349
350 state = GNUNET_URITRACK_get_state (ectx, cfg, info->uri);
351 if ((state & (GNUNET_URITRACK_INSERTED |
352 GNUNET_URITRACK_INDEXED)) &&
353 (GNUNET_YES == GNUNET_GC_get_configuration_value_yesno (cfg,
354 "GNUNET-GTK",
355 "DISABLE-OWN",
356 GNUNET_NO)))
357 return;
349 kwords = GNUNET_ECRS_uri_get_keyword_count_from_ksk (searchContext->uri); 358 kwords = GNUNET_ECRS_uri_get_keyword_count_from_ksk (searchContext->uri);
350 model = GTK_TREE_STORE (gtk_tree_view_get_model (searchContext->treeview)); 359 model = GTK_TREE_STORE (gtk_tree_view_get_model (searchContext->treeview));
351 /* find existing entry */ 360 /* find existing entry */