gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis-gtk] branch master updated: begin adding logic for poli


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: begin adding logic for policy version showing/selection
Date: Fri, 19 Mar 2021 22:15:57 +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 fed2390  begin adding logic for policy version showing/selection
fed2390 is described below

commit fed2390c1b543bf1a01a02609127ccdf78d02721
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Fri Mar 19 22:15:54 2021 +0100

    begin adding logic for policy version showing/selection
---
 src/anastasis/anastasis-gtk_action.c               | 68 +++++++++++-----------
 .../anastasis-gtk_handle-policy-version-changed.c  |  2 +-
 2 files changed, 35 insertions(+), 35 deletions(-)

diff --git a/src/anastasis/anastasis-gtk_action.c 
b/src/anastasis/anastasis-gtk_action.c
index d7f0453..8670dcf 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -1111,7 +1111,7 @@ action_policies_paying (void)
 
   AG_hide_all_frames ();
   ls = GTK_LIST_STORE (GCG_get_main_window_object (
-                                                  "unpaid_qrcodes_liststore"));
+                         "unpaid_qrcodes_liststore"));
   gtk_list_store_clear (ls);
   pprs = json_object_get (redux_state,
                           "policy_payment_requests");
@@ -1187,30 +1187,30 @@ action_backup_finished (void)
   char *txt;
   uint64_t version;
   struct GNUNET_JSON_Specification spec[] = {
-                                            GNUNET_JSON_spec_uint64 
("max_policy_version",
-                                   &version),
-          GNUNET_JSON_spec_end ()
+    GNUNET_JSON_spec_uint64 ("max_policy_version",
+                             &version),
+    GNUNET_JSON_spec_end ()
   };
-  
+
   AG_hide_all_frames ();
-  
+
   if (GNUNET_OK !=
       GNUNET_JSON_parse (redux_state,
-                        spec,
-                        NULL, NULL))
-    {
-      GNUNET_break_op (0);
-      AG_error ("State did not parse correctly");
-      return;
-    }
-  
+                         spec,
+                         NULL, NULL))
+  {
+    GNUNET_break_op (0);
+    AG_error ("State did not parse correctly");
+    return;
+  }
+
   l = GTK_LABEL (GCG_get_main_window_object (
-                                            
"anastasis_gtk_success_backup_version_label"));
+                   "anastasis_gtk_success_backup_version_label"));
   GNUNET_asprintf (&txt,
-                  _("Maximum created policy version is <b>%llu</b>."),
-                  (unsigned long long) version);
+                   _ ("Maximum created policy version is <b>%llu</b>."),
+                   (unsigned long long) version);
   gtk_label_set_text (l,
-                     txt);
+                      txt);
   GNUNET_free (txt);
   AG_show ("anastasis_gtk_completed_frame");
   AG_show ("anastasis_gtk_success_backup_label");
@@ -1318,28 +1318,28 @@ action_challenge_selecting (void)
   {
     uint64_t version;
     struct GNUNET_JSON_Specification vspec[] = {
-                                               GNUNET_JSON_spec_uint64 
("version",
-                                   &version),
-          GNUNET_JSON_spec_end ()
+      GNUNET_JSON_spec_uint64 ("version",
+                               &version),
+      GNUNET_JSON_spec_end ()
     };
     GtkSpinButton *sb;
-    
+
     if (GNUNET_OK !=
-       GNUNET_JSON_parse (ri,
-                          vspec,
-                          NULL, NULL))
-      {
-       GNUNET_break_op (0);
-       AG_error ("'recovery_information' did not parse correctly");
-       return;
-      }
+        GNUNET_JSON_parse (ri,
+                           vspec,
+                           NULL, NULL))
+    {
+      GNUNET_break_op (0);
+      AG_error ("'recovery_information' did not parse correctly");
+      return;
+    }
     sb = GTK_SPIN_BUTTON (GCG_get_main_window_object (
-                                                     
"anastasis_gtk_policy_version_spin_button"));
+                            "anastasis_gtk_policy_version_spin_button"));
     gtk_spin_button_set_range (sb,
-                              0.0,
-                              version);
+                               0.0,
+                               version);
     gtk_spin_button_set_value (sb,
-                              version);   
+                               version);
   }
   rd = json_object_get (redux_state,
                         "recovery_document");
diff --git a/src/anastasis/anastasis-gtk_handle-policy-version-changed.c 
b/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
index ce82ba8..5c0d502 100644
--- a/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
+++ b/src/anastasis/anastasis-gtk_handle-policy-version-changed.c
@@ -33,7 +33,7 @@
 
 void
 anastasis_gtk_policy_version_spin_button_changed_cb (GtkEditable *entry,
-                                             gpointer user_data)
+                                                     gpointer user_data)
 {
   GtkSpinButton *sb = GTK_SPIN_BUTTON (entry);
   gint version;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]