aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk-edit_publish_dialog.c')
-rw-r--r--src/fs/gnunet-fs-gtk-edit_publish_dialog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
index b6835ef3..b029ecc3 100644
--- a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
+++ b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
@@ -153,8 +153,8 @@ GNUNET_GTK_edit_publication_add_button_clicked_cb (GtkButton *button,
153 meta_list = GTK_LIST_STORE (gtk_tree_view_get_model (meta_tree)); 153 meta_list = GTK_LIST_STORE (gtk_tree_view_get_model (meta_tree));
154 154
155 gtk_list_store_insert (meta_list, &iter, 0); 155 gtk_list_store_insert (meta_list, &iter, 0);
156 /* type == -1 means "not set" */ 156 /* type == 0 means "not set" */
157 gtk_list_store_set (meta_list, &iter, 0, -1, 1, EXTRACTOR_METAFORMAT_UTF8, 157 gtk_list_store_set (meta_list, &iter, 0, 0, 1, EXTRACTOR_METAFORMAT_UTF8,
158 2, _("Select a type"), 3, _("Specify a value"), 4, NULL, -1); 158 2, _("Select a type"), 3, _("Specify a value"), 4, NULL, -1);
159} 159}
160 160
@@ -773,7 +773,7 @@ file_information_update (void *cls, struct GNUNET_FS_FileInformation *fi,
773 do 773 do
774 { 774 {
775 gtk_tree_model_get (tm, &iter, 0, &ntype, 1, &nformat, 3, &value, -1); 775 gtk_tree_model_get (tm, &iter, 0, &ntype, 1, &nformat, 3, &value, -1);
776 if (ntype >= 0) 776 if (ntype > 0)
777 GNUNET_CONTAINER_meta_data_insert (nm, "<user>", ntype, nformat, 777 GNUNET_CONTAINER_meta_data_insert (nm, "<user>", ntype, nformat,
778 "text/plain", value, strlen (value) + 1); 778 "text/plain", value, strlen (value) + 1);
779 g_free (value); 779 g_free (value);