diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk_publish-dialog.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk_publish-dialog.c | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/src/fs/gnunet-fs-gtk_publish-dialog.c b/src/fs/gnunet-fs-gtk_publish-dialog.c index 20a05400..757958be 100644 --- a/src/fs/gnunet-fs-gtk_publish-dialog.c +++ b/src/fs/gnunet-fs-gtk_publish-dialog.c | |||
@@ -389,7 +389,7 @@ create_dir_at_iter (struct MainPublishingDialogContext *ctx, | |||
389 | meta = GNUNET_CONTAINER_meta_data_create (); | 389 | meta = GNUNET_CONTAINER_meta_data_create (); |
390 | GNUNET_FS_meta_data_make_directory (meta); | 390 | GNUNET_FS_meta_data_make_directory (meta); |
391 | GNUNET_CONTAINER_meta_data_insert (meta, "<gnunet-gtk>", | 391 | GNUNET_CONTAINER_meta_data_insert (meta, "<gnunet-gtk>", |
392 | EXTRACTOR_METATYPE_FILENAME, | 392 | EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME, |
393 | EXTRACTOR_METAFORMAT_UTF8, "text/plain", | 393 | EXTRACTOR_METAFORMAT_UTF8, "text/plain", |
394 | name, strlen (name) + 1); | 394 | name, strlen (name) + 1); |
395 | gtk_tree_store_insert_before (GTK_TREE_STORE (ctx->file_info_treemodel), pos, iter, NULL); | 395 | gtk_tree_store_insert_before (GTK_TREE_STORE (ctx->file_info_treemodel), pos, iter, NULL); |
@@ -1839,32 +1839,7 @@ add_updateable_to_ts (void *cls, const char *last_id, | |||
1839 | GNUNET_CONTAINER_multihashmap_put (uc->seen, &hc, "dummy", | 1839 | GNUNET_CONTAINER_multihashmap_put (uc->seen, &hc, "dummy", |
1840 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST); | 1840 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST); |
1841 | /* FIXME-BUG-MAYBE: what if this put fails? Not convinced it cannot... */ | 1841 | /* FIXME-BUG-MAYBE: what if this put fails? Not convinced it cannot... */ |
1842 | desc = | 1842 | desc = GNUNET_FS_GTK_get_description_from_metadata (last_meta); |
1843 | GNUNET_CONTAINER_meta_data_get_first_by_types (last_meta, | ||
1844 | EXTRACTOR_METATYPE_DESCRIPTION, | ||
1845 | EXTRACTOR_METATYPE_TITLE, | ||
1846 | EXTRACTOR_METATYPE_BOOK_TITLE, | ||
1847 | EXTRACTOR_METATYPE_FILENAME, | ||
1848 | EXTRACTOR_METATYPE_SUMMARY, | ||
1849 | EXTRACTOR_METATYPE_ALBUM, | ||
1850 | EXTRACTOR_METATYPE_COMMENT, | ||
1851 | EXTRACTOR_METATYPE_SUBJECT, | ||
1852 | -1); | ||
1853 | if (desc == NULL) | ||
1854 | desc = GNUNET_strdup (_("no description supplied")); | ||
1855 | else | ||
1856 | { | ||
1857 | char *utf8_desc = NULL; | ||
1858 | |||
1859 | utf8_desc = | ||
1860 | GNUNET_FS_GTK_dubious_meta_to_utf8 (EXTRACTOR_METAFORMAT_UTF8, desc, | ||
1861 | strlen (desc) + 1); | ||
1862 | GNUNET_free (desc); | ||
1863 | if (utf8_desc != NULL) | ||
1864 | desc = utf8_desc; | ||
1865 | else | ||
1866 | desc = NULL; | ||
1867 | } | ||
1868 | gtk_tree_store_insert_with_values (uc->ts, &iter, uc->parent, G_MAXINT, 0, | 1843 | gtk_tree_store_insert_with_values (uc->ts, &iter, uc->parent, G_MAXINT, 0, |
1869 | uc->namespace_name, 1, uc->ns, 2, last_id, | 1844 | uc->namespace_name, 1, uc->ns, 2, last_id, |
1870 | 3, GNUNET_FS_uri_dup (last_uri), 4, | 1845 | 3, GNUNET_FS_uri_dup (last_uri), 4, |