aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_event-handler.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-26 15:25:29 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-26 15:25:29 +0000
commit6330fbcc48591bc026afcdbdf40c4a8704dd7f58 (patch)
treef13f153e22f3a946f207cd2ee037d0ad7aeb2a17 /src/fs/gnunet-fs-gtk_event-handler.c
parent2b103004302403f2707b1094a65b40166cc90ace (diff)
downloadgnunet-gtk-6330fbcc48591bc026afcdbdf40c4a8704dd7f58.tar.gz
gnunet-gtk-6330fbcc48591bc026afcdbdf40c4a8704dd7f58.zip
LRN: Adds a way for GNUNET_FS_GTK_get_description_from_metadata() to
convey to you the fact that the description it returned is a placeholder, and that metadata didn't really have any description. This capability is not used at the moment (the code that used it was only present in early namespace manager draft).
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));