diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-02 11:04:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-02 11:04:15 +0000 |
commit | e6bff053a9a1b8e84e92b5c2615075391b2bcb11 (patch) | |
tree | 41438a7aea9da92855e1ce532c996c65b6d594c6 /src/fs/gnunet-fs-gtk-main_window_file_publish.c | |
parent | 5e56b6c45b2f327bc9b5267d55d3eb661b372c4f (diff) | |
download | gnunet-gtk-e6bff053a9a1b8e84e92b5c2615075391b2bcb11.tar.gz gnunet-gtk-e6bff053a9a1b8e84e92b5c2615075391b2bcb11.zip |
-dce
Diffstat (limited to 'src/fs/gnunet-fs-gtk-main_window_file_publish.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk-main_window_file_publish.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/fs/gnunet-fs-gtk-main_window_file_publish.c b/src/fs/gnunet-fs-gtk-main_window_file_publish.c index 2e71ec13..29435940 100644 --- a/src/fs/gnunet-fs-gtk-main_window_file_publish.c +++ b/src/fs/gnunet-fs-gtk-main_window_file_publish.c | |||
@@ -1084,34 +1084,23 @@ GNUNET_GTK_master_publish_dialog_edit_button_clicked_cb (GtkWidget * dummy, | |||
1084 | struct MainPublishingDialogContext *ctx) | 1084 | struct MainPublishingDialogContext *ctx) |
1085 | { | 1085 | { |
1086 | struct EditPublishContext *cbargs; | 1086 | struct EditPublishContext *cbargs; |
1087 | gint do_index; | ||
1088 | char *short_fn; | 1087 | char *short_fn; |
1089 | guint anonymity_level; | ||
1090 | guint priority; | ||
1091 | struct GNUNET_FS_FileInformation *fip; | 1088 | struct GNUNET_FS_FileInformation *fip; |
1092 | guint64 abs_etime; | ||
1093 | guint replication_level; | ||
1094 | GtkListStore *anon_liststore; | 1089 | GtkListStore *anon_liststore; |
1095 | 1090 | ||
1096 | anon_liststore = GTK_LIST_STORE (gtk_builder_get_object (ctx->main_window_builder, "main_window_search_anonymity_liststore")); | 1091 | anon_liststore = GTK_LIST_STORE (gtk_builder_get_object (ctx->main_window_builder, |
1097 | 1092 | "main_window_search_anonymity_liststore")); | |
1098 | cbargs = GNUNET_malloc (sizeof (struct EditPublishContext)); | 1093 | cbargs = GNUNET_malloc (sizeof (struct EditPublishContext)); |
1099 | cbargs->tm = ctx->file_info_treemodel; | 1094 | cbargs->tm = ctx->file_info_treemodel; |
1100 | if (TRUE != gtk_tree_selection_get_selected (ctx->file_info_selection, NULL, &cbargs->iter)) | 1095 | if (! gtk_tree_selection_get_selected (ctx->file_info_selection, NULL, &cbargs->iter)) |
1101 | { | 1096 | { |
1102 | GNUNET_break (0); | 1097 | GNUNET_break (0); |
1103 | GNUNET_free (cbargs); | 1098 | GNUNET_free (cbargs); |
1104 | return; | 1099 | return; |
1105 | } | 1100 | } |
1106 | |||
1107 | gtk_tree_model_get (ctx->file_info_treemodel, &cbargs->iter, | 1101 | gtk_tree_model_get (ctx->file_info_treemodel, &cbargs->iter, |
1108 | 1, &do_index, | ||
1109 | 2, &short_fn, | 1102 | 2, &short_fn, |
1110 | 3, &anonymity_level, | ||
1111 | 4, &priority, | ||
1112 | 5, &fip, | 1103 | 5, &fip, |
1113 | 6, &abs_etime, | ||
1114 | 7, &replication_level, | ||
1115 | -1); | 1104 | -1); |
1116 | /* FIXME: can we just give our anon_liststore out like this? What about | 1105 | /* FIXME: can we just give our anon_liststore out like this? What about |
1117 | (unintended) sharing of state? */ | 1106 | (unintended) sharing of state? */ |