[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis-gtk] branch master updated: fix policy review dialog
From: |
gnunet |
Subject: |
[taler-anastasis-gtk] branch master updated: fix policy review dialog |
Date: |
Fri, 12 Mar 2021 19:49:34 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis-gtk.
The following commit(s) were added to refs/heads/master by this push:
new 94a6d75 fix policy review dialog
94a6d75 is described below
commit 94a6d757b18c4adbeefcaa894456670a08761d94
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Mar 12 19:49:32 2021 +0100
fix policy review dialog
---
src/anastasis/anastasis-gtk_action.c | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/src/anastasis/anastasis-gtk_action.c
b/src/anastasis/anastasis-gtk_action.c
index 02d7d68..77cd4ec 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -1,6 +1,6 @@
/*
This file is part of anastasis-gtk.
- Copyright (C) 2020 Anastasis SARL
+ Copyright (C) 2020, 2021 Anastasis SARL
Anastasis is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -699,6 +699,7 @@ action_policies_reviewing (void)
AG_hide_all_frames ();
ts = GTK_TREE_STORE (GCG_get_main_window_object ("policy_review_treestore"));
+ gtk_tree_store_clear (ts);
policies = json_object_get (redux_state,
"policies");
GNUNET_assert (NULL != policies);
@@ -737,23 +738,33 @@ action_policies_reviewing (void)
summary = NULL;
json_array_foreach (methods, mindex, method)
{
- json_t *truth;
+ uint32_t imethod;
const char *provider;
struct GNUNET_JSON_Specification mspec[] = {
GNUNET_JSON_spec_string ("provider",
&provider),
- GNUNET_JSON_spec_json ("truth",
- &truth),
+ GNUNET_JSON_spec_uint32 ("authentication_method",
+ &imethod),
GNUNET_JSON_spec_end ()
};
+ json_t *jmethods;
+ json_t *jmethod;
+
if (GNUNET_OK !=
GNUNET_JSON_parse (method,
mspec,
NULL, NULL))
{
+ json_dumpf (method,
+ stderr,
+ JSON_INDENT (2));
GNUNET_break (0);
continue;
}
+ jmethods = json_object_get (redux_state,
+ "authentication_methods");
+ jmethod = json_array_get (jmethods,
+ imethod);
{
GtkTreeIter miter;
const char *instructions;
@@ -768,7 +779,7 @@ action_policies_reviewing (void)
struct TALER_Amount method_cost;
if (GNUNET_OK !=
- GNUNET_JSON_parse (truth,
+ GNUNET_JSON_parse (jmethod,
tspec,
NULL, NULL))
{
@@ -807,8 +818,6 @@ action_policies_reviewing (void)
summary = tmp;
}
}
-
-
GNUNET_JSON_parse_free (mspec);
}
if (NULL != summary)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis-gtk] branch master updated: fix policy review dialog,
gnunet <=