aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_event-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_event-handler.c')
-rw-r--r--src/fs/gnunet-fs-gtk_event-handler.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c
index 97592656..4017e10f 100644
--- a/src/fs/gnunet-fs-gtk_event-handler.c
+++ b/src/fs/gnunet-fs-gtk_event-handler.c
@@ -1456,6 +1456,7 @@ update_search_result (struct SearchResult *sr,
1456 guint percent_avail; 1456 guint percent_avail;
1457 GtkNotebook *notebook; 1457 GtkNotebook *notebook;
1458 gint page; 1458 gint page;
1459 int desc_is_a_dup;
1459 1460
1460 if (sr == NULL) 1461 if (sr == NULL)
1461 { 1462 {
@@ -1466,7 +1467,7 @@ update_search_result (struct SearchResult *sr,
1466 "Updating search result SR=%p with %d, %u, %u\n", 1467 "Updating search result SR=%p with %d, %u, %u\n",
1467 sr, availability_rank, 1468 sr, availability_rank,
1468 availability_certainty, applicability_rank); 1469 availability_certainty, applicability_rank);
1469 desc = GNUNET_FS_GTK_get_description_from_metadata (meta); 1470 desc = GNUNET_FS_GTK_get_description_from_metadata (meta, &desc_is_a_dup);
1470 mime = get_mimetype_from_metadata (meta); 1471 mime = get_mimetype_from_metadata (meta);
1471 pixbuf = GNUNET_FS_GTK_get_thumbnail_from_meta_data (meta); 1472 pixbuf = GNUNET_FS_GTK_get_thumbnail_from_meta_data (meta);
1472 tp = gtk_tree_row_reference_get_path (sr->rr); 1473 tp = gtk_tree_row_reference_get_path (sr->rr);
@@ -1549,6 +1550,7 @@ GNUNET_GTK_add_search_result (struct SearchTab *tab,
1549 GtkTreeModel *tm; 1550 GtkTreeModel *tm;
1550 GtkTreeStore *ts; 1551 GtkTreeStore *ts;
1551 uint64_t fsize; 1552 uint64_t fsize;
1553 int desc_is_a_dup;
1552 1554
1553 if (NULL == uri) 1555 if (NULL == uri)
1554 { 1556 {
@@ -1577,7 +1579,7 @@ GNUNET_GTK_add_search_result (struct SearchTab *tab,
1577 } 1579 }
1578 uris = GNUNET_FS_uri_to_string (uri); 1580 uris = GNUNET_FS_uri_to_string (uri);
1579 } 1581 }
1580 desc = GNUNET_FS_GTK_get_description_from_metadata (meta); 1582 desc = GNUNET_FS_GTK_get_description_from_metadata (meta, &desc_is_a_dup);
1581 pixbuf = GNUNET_FS_GTK_get_thumbnail_from_meta_data (meta); 1583 pixbuf = GNUNET_FS_GTK_get_thumbnail_from_meta_data (meta);
1582 1584
1583 sr = GNUNET_malloc (sizeof (struct SearchResult)); 1585 sr = GNUNET_malloc (sizeof (struct SearchResult));