diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-05-27 03:07:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-05-27 03:07:55 +0000 |
commit | 7ca4c753a73535ecbf86cfd42165ee571c72ecc7 (patch) | |
tree | 1bdf97c77302567cc38b72b81d96e8a993980141 | |
parent | 73f26eebe1fb1b92753b5c99884a09020085ea91 (diff) | |
download | gnunet-gtk-7ca4c753a73535ecbf86cfd42165ee571c72ecc7.tar.gz gnunet-gtk-7ca4c753a73535ecbf86cfd42165ee571c72ecc7.zip |
fix
-rw-r--r-- | src/plugins/fs/search.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index e42474de..71ced3e5 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -100,7 +100,8 @@ updateSearchSummary (SearchList * searchContext) | |||
100 | static GdkPixbuf * | 100 | static GdkPixbuf * |
101 | make_ranking_pixbuf(int availability_rank, | 101 | make_ranking_pixbuf(int availability_rank, |
102 | unsigned int availability_certainty, | 102 | unsigned int availability_certainty, |
103 | unsigned int applicability_rank) | 103 | unsigned int applicability_rank, |
104 | unsigned int kwords) | ||
104 | { | 105 | { |
105 | GdkPixbuf *pixbuf; | 106 | GdkPixbuf *pixbuf; |
106 | guchar * pixels; | 107 | guchar * pixels; |
@@ -109,7 +110,6 @@ make_ranking_pixbuf(int availability_rank, | |||
109 | int rowstride; | 110 | int rowstride; |
110 | unsigned int x; | 111 | unsigned int x; |
111 | unsigned int y; | 112 | unsigned int y; |
112 | unsigned int kwords; | ||
113 | 113 | ||
114 | #define P_HEIGHT 21 | 114 | #define P_HEIGHT 21 |
115 | #define P_WIDTH 60 | 115 | #define P_WIDTH 60 |
@@ -217,7 +217,8 @@ addEntryToSearchTree (SearchList * searchContext, | |||
217 | 0; | 217 | 0; |
218 | pixbuf = getThumbnailFromMetaData (info->meta); | 218 | pixbuf = getThumbnailFromMetaData (info->meta); |
219 | size_h = GNUNET_get_byte_size_as_fancy_string (size); | 219 | size_h = GNUNET_get_byte_size_as_fancy_string (size); |
220 | rankbuf = make_ranking_pixbuf(0, 0, 1); | 220 | rankbuf = make_ranking_pixbuf(0, 0, 1, |
221 | GNUNET_ECRS_uri_get_keyword_count_from_ksk(searchContext->uri)); | ||
221 | gtk_tree_store_set (searchContext->tree, | 222 | gtk_tree_store_set (searchContext->tree, |
222 | iter, | 223 | iter, |
223 | SEARCH_NAME, name, | 224 | SEARCH_NAME, name, |
@@ -330,7 +331,8 @@ void fs_search_update (SearchList * searchContext, | |||
330 | rank = (int) applicability_rank + (int) (availability_rank * (int) availability_certainty * 65536); | 331 | rank = (int) applicability_rank + (int) (availability_rank * (int) availability_certainty * 65536); |
331 | pixbuf = make_ranking_pixbuf(availability_rank, | 332 | pixbuf = make_ranking_pixbuf(availability_rank, |
332 | availability_certainty, | 333 | availability_certainty, |
333 | applicability_rank); | 334 | applicability_rank, |
335 | kwords); | ||
334 | gtk_tree_store_set(searchContext->tree, | 336 | gtk_tree_store_set(searchContext->tree, |
335 | &iter, | 337 | &iter, |
336 | SEARCH_AVAILABILITY_RANK, availability_rank, | 338 | SEARCH_AVAILABILITY_RANK, availability_rank, |