diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-23 16:17:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-23 16:17:56 +0000 |
commit | 6f368a3a7ca7702e3c46a2b2aa3e094b6a606824 (patch) | |
tree | 856f916c55e22257767ecce01a99aeda8a890f37 | |
parent | d1b6183353e9384a279570e38fbd9c157ca91034 (diff) | |
download | gnunet-gtk-6f368a3a7ca7702e3c46a2b2aa3e094b6a606824.tar.gz gnunet-gtk-6f368a3a7ca7702e3c46a2b2aa3e094b6a606824.zip |
-LRN: fix gint vs guint
-rw-r--r-- | contrib/gnunet_fs_gtk_main_window.glade | 6 | ||||
-rw-r--r-- | src/fs/gnunet-fs-gtk-edit_publish_dialog.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/contrib/gnunet_fs_gtk_main_window.glade b/contrib/gnunet_fs_gtk_main_window.glade index b848cbad..2e548100 100644 --- a/contrib/gnunet_fs_gtk_main_window.glade +++ b/contrib/gnunet_fs_gtk_main_window.glade | |||
@@ -2137,10 +2137,10 @@ | |||
2137 | <object class="GtkListStore" id="GNUNET_GTK_publication_metadata_liststore"> | 2137 | <object class="GtkListStore" id="GNUNET_GTK_publication_metadata_liststore"> |
2138 | <columns> | 2138 | <columns> |
2139 | <!-- column-name Type --> | 2139 | <!-- column-name Type --> |
2140 | <column type="gint"/> | 2140 | <column type="guint"/> |
2141 | <!-- column-name Format --> | 2141 | <!-- column-name Format --> |
2142 | <column type="gint"/> | 2142 | <column type="guint"/> |
2143 | <!-- column-name Type1 --> | 2143 | <!-- column-name Type_name --> |
2144 | <column type="gchararray"/> | 2144 | <column type="gchararray"/> |
2145 | <!-- column-name Value --> | 2145 | <!-- column-name Value --> |
2146 | <column type="gchararray"/> | 2146 | <column type="gchararray"/> |
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); |