aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_common.c')
-rw-r--r--src/fs/gnunet-fs-gtk_common.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk_common.c b/src/fs/gnunet-fs-gtk_common.c
index 82d93e8f..27905f25 100644
--- a/src/fs/gnunet-fs-gtk_common.c
+++ b/src/fs/gnunet-fs-gtk_common.c
@@ -302,9 +302,11 @@ GNUNET_FS_GTK_get_description_from_metadata (
302 * the appropriate action. 302 * the appropriate action.
303 * 303 *
304 * @param uri the URI 304 * @param uri the URI
305 * @param anonymity_level anonymity level to use
305 */ 306 */
306void 307void
307GNUNET_FS_GTK_handle_uri (const struct GNUNET_FS_Uri *uri) 308GNUNET_FS_GTK_handle_uri (const struct GNUNET_FS_Uri *uri,
309 guint anonymity_level)
308{ 310{
309 GtkTreeIter iter; 311 GtkTreeIter iter;
310 GtkTreeModel *namespace_treestore; 312 GtkTreeModel *namespace_treestore;
@@ -321,6 +323,7 @@ GNUNET_FS_GTK_handle_uri (const struct GNUNET_FS_Uri *uri)
321 struct DownloadEntry *de; 323 struct DownloadEntry *de;
322 324
323 de = GNUNET_malloc (sizeof (struct DownloadEntry)); 325 de = GNUNET_malloc (sizeof (struct DownloadEntry));
326 de->anonymity = anonymity_level;
324 de->uri = GNUNET_FS_uri_dup (uri); 327 de->uri = GNUNET_FS_uri_dup (uri);
325 GNUNET_FS_GTK_open_download_as_dialog (de); 328 GNUNET_FS_GTK_open_download_as_dialog (de);
326 return; 329 return;
@@ -416,6 +419,7 @@ GNUNET_FS_GTK_handle_uri (const struct GNUNET_FS_Uri *uri)
416 GNUNET_break (0); 419 GNUNET_break (0);
417} 420}
418 421
422
419/* Largest rating value among all namespaces. INT_MIN means "undefined" */ 423/* Largest rating value among all namespaces. INT_MIN means "undefined" */
420static int largest_namespace_rating = INT_MIN; 424static int largest_namespace_rating = INT_MIN;
421 425