summaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c')
-rw-r--r--src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c45
1 files changed, 2 insertions, 43 deletions
diff --git a/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c b/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
index de25cff..a4b6a64 100644
--- a/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
+++ b/src/anastasis/anastasis-gtk_handle-main-window-forward-clicked.c
@@ -36,39 +36,8 @@
/**
- * Function called on each selected currency. Appends
- * the currency to the JSON array.
- *
- * @param model the model of the currencies
- * @param path a path (unused)
- * @param iter selected currency position
- * @param data a `json *` with the JSON array to expand
- */
-static void
-append_currency (GtkTreeModel *model,
- GtkTreePath *path,
- GtkTreeIter *iter,
- gpointer data)
-{
- json_t *currencies = data;
- gchar *currency;
-
- (void) path;
- gtk_tree_model_get (model,
- iter,
- AG_CMC_CURRENCY_NAME,
- &currency,
- -1);
- GNUNET_break (0 ==
- json_array_append_new (currencies,
- json_string (currency)));
- g_free (currency);
-}
-
-
-/**
* The user selected the 'forward' button. Move on with the
- * country and currency selection.
+ * country selection.
*/
static void
forward_country_selecting (void)
@@ -80,7 +49,6 @@ forward_country_selecting (void)
gchar *country_name;
gchar *country_code;
json_t *arguments;
- json_t *currencies;
tv = GTK_TREE_VIEW (GCG_get_main_window_object (
"anastasis_gtk_country_treeview"));
@@ -92,13 +60,6 @@ forward_country_selecting (void)
GNUNET_break (0);
return;
}
- currencies = json_array ();
- GNUNET_assert (NULL != currencies);
- gtk_tree_selection_selected_foreach (
- GTK_TREE_SELECTION (
- GCG_get_main_window_object ("anastasis_gtk_currency_selection")),
- &append_currency,
- currencies);
gtk_tree_model_get (model,
&iter,
AG_CCMC_COUNTRY_NAME, &country_name,
@@ -108,9 +69,7 @@ forward_country_selecting (void)
GNUNET_JSON_pack_string ("country",
country_name),
GNUNET_JSON_pack_string ("country_code",
- country_code),
- GNUNET_JSON_pack_array_steal ("currencies",
- currencies));
+ country_code));
g_free (country_name);
g_free (country_code);
AG_freeze ();