gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis-gtk] branch master updated: fixindent


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: fixindent
Date: Sun, 14 Mar 2021 17:14:56 +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 86dd072  fixindent
86dd072 is described below

commit 86dd0724e7618546f5f1c71f2131e76bf3a13b12
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Sun Mar 14 17:14:54 2021 +0100

    fixindent
---
 src/anastasis/anastasis-gtk_action.c               |  74 +++++-----
 .../anastasis-gtk_handle-challenge-code.c          |  10 +-
 .../anastasis-gtk_handle-challenge-question.c      |  10 +-
 src/anastasis/anastasis-gtk_helper.h               | 150 ++++++++++-----------
 4 files changed, 122 insertions(+), 122 deletions(-)

diff --git a/src/anastasis/anastasis-gtk_action.c 
b/src/anastasis/anastasis-gtk_action.c
index c4c27c7..627941e 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -70,7 +70,8 @@ action_continent_selecting (void)
         gtk_list_store_insert_with_values (continent_liststore,
                                            NULL,
                                            -1,
-                                           AG_CMC_CONTINENT_NAME, 
json_string_value (continent),
+                                           AG_CMC_CONTINENT_NAME,
+                                           json_string_value (continent),
                                            -1);
       }
     }
@@ -599,13 +600,13 @@ action_authentications_editing (void)
                                         spec,
                                         NULL, NULL));
       gtk_list_store_insert_with_values (
-                                         ls,
-                                         NULL,
-                                         -1,
-                                         AG_AMMC_TYPE, type,
-                                         AG_AMMC_VISUALIZATION, instructions,
-                                         AG_AMMC_INDEX, (guint) index,
-                                         -1);
+        ls,
+        NULL,
+        -1,
+        AG_AMMC_TYPE, type,
+        AG_AMMC_VISUALIZATION, instructions,
+        AG_AMMC_INDEX, (guint) index,
+        -1);
       have_auth = true;
     }
   }
@@ -1190,8 +1191,8 @@ challenge_button_clicked_cb (GtkButton *button,
   json_t *uuid = json_object_get (challenge,
                                   "uuid");
   json_t *args = json_pack ("{s:O}",
-                                   "uuid",
-                                   uuid);
+                            "uuid",
+                            uuid);
 
   GNUNET_assert (NULL != uuid);
   GNUNET_assert (NULL != args);
@@ -1229,13 +1230,13 @@ action_challenge_selecting (void)
   size_t index;
   json_t *challenge;
   GtkBox *box;
-  
+
   AG_hide_all_frames ();
   AG_show ("anastasis_gtk_challenge_frame");
   challenges = json_object_get (redux_state,
                                 "challenges");
   box = GTK_BOX (GCG_get_main_window_object (
-                                             
"anastasis_gtk_open_challenge_box"));
+                   "anastasis_gtk_open_challenge_box"));
   gtk_container_foreach (GTK_CONTAINER (box),
                          &remove_child,
                          box);
@@ -1248,10 +1249,10 @@ action_challenge_selecting (void)
       GNUNET_JSON_spec_string ("instructions",
                                &instructions),
       TALER_JSON_spec_amount ("cost",
-                               &cost),
+                              &cost),
       GNUNET_JSON_spec_end ()
     };
- 
+
     if (GNUNET_OK !=
         GNUNET_JSON_parse (challenge,
                            spec,
@@ -1261,24 +1262,24 @@ action_challenge_selecting (void)
       continue;
     }
     {
-    char *ins_str;
-
-    GNUNET_asprintf (&ins_str,
-                     "#%u: %s",
-                     (unsigned int) index,
-                     instructions);
-    b = gtk_button_new_with_label (ins_str);
-    GNUNET_free (ins_str);
-  }
+      char *ins_str;
+
+      GNUNET_asprintf (&ins_str,
+                       "#%u: %s",
+                       (unsigned int) index,
+                       instructions);
+      b = gtk_button_new_with_label (ins_str);
+      GNUNET_free (ins_str);
+    }
     {
-          char *cost_str;
-
-    GNUNET_asprintf (&cost_str,
-                     _("Price: %s"),
-                     TALER_amount2s (&cost));
-    gtk_widget_set_tooltip_text (b,
-                                 cost_str);
-    GNUNET_free (cost_str);
+      char *cost_str;
+
+      GNUNET_asprintf (&cost_str,
+                       _ ("Price: %s"),
+                       TALER_amount2s (&cost));
+      gtk_widget_set_tooltip_text (b,
+                                   cost_str);
+      GNUNET_free (cost_str);
     }
     g_object_connect (G_OBJECT (b),
                       "signal::clicked",
@@ -1287,7 +1288,7 @@ action_challenge_selecting (void)
                       NULL);
     gtk_container_add (GTK_CONTAINER (box),
                        b);
-    
+
   }
   AG_show ("anastasis_gtk_main_control_vbox");
   AG_show ("anastasis_gtk_main_window_save_as_button");
@@ -1385,8 +1386,9 @@ diag_question (const json_t *details)
   GtkLabel *label;
   const char *instructions;
 
-  builder = GNUNET_GTK_get_new_builder 
("anastasis_gtk_challenge_question.glade",
-                                        NULL);
+  builder = GNUNET_GTK_get_new_builder (
+    "anastasis_gtk_challenge_question.glade",
+    NULL);
   if (NULL == builder)
   {
     GNUNET_break (0);
@@ -1480,9 +1482,9 @@ action_challenge_solving (void)
   {
     GtkWidget *toplevel;
     GtkBox *box;
-    
+
     box = GTK_BOX (GCG_get_main_window_object (
-                                             
"anastasis_gtk_open_challenge_box"));
+                     "anastasis_gtk_open_challenge_box"));
     toplevel = gtk_widget_get_toplevel (GTK_WIDGET (box));
     gtk_window_set_transient_for (GTK_WINDOW (diag),
                                   GTK_WINDOW (toplevel));
diff --git a/src/anastasis/anastasis-gtk_handle-challenge-code.c 
b/src/anastasis/anastasis-gtk_handle-challenge-code.c
index 1628c60..86e5195 100644
--- a/src/anastasis/anastasis-gtk_handle-challenge-code.c
+++ b/src/anastasis/anastasis-gtk_handle-challenge-code.c
@@ -42,7 +42,7 @@ void
 anastasis_gtk_c_code_dialog_response_cb (GtkDialog *dialog,
                                          gint response_id,
                                          gpointer user_data)
-{  
+{
   GtkBuilder *builder = GTK_BUILDER (user_data);
   GtkEntry *q;
   const char *qs;
@@ -84,8 +84,8 @@ anastasis_gtk_c_code_dialog_answer_entry_changed_cb (GtkEntry 
*entry,
                                          "anastasis_gtk_c_code_entry"));
   as = gtk_entry_get_text (a);
   gtk_widget_set_sensitive (
-                            GTK_WIDGET (gtk_builder_get_object (builder,
-                                                                
"anastasis_gtk_c_code_dialog_btn_ok")),
-                            (NULL != as) &&
-                            (0 < strlen (as)));
+    GTK_WIDGET (gtk_builder_get_object (builder,
+                                        "anastasis_gtk_c_code_dialog_btn_ok")),
+    (NULL != as) &&
+    (0 < strlen (as)));
 }
diff --git a/src/anastasis/anastasis-gtk_handle-challenge-question.c 
b/src/anastasis/anastasis-gtk_handle-challenge-question.c
index a62bdc4..ed6d333 100644
--- a/src/anastasis/anastasis-gtk_handle-challenge-question.c
+++ b/src/anastasis/anastasis-gtk_handle-challenge-question.c
@@ -82,10 +82,10 @@ anastasis_gtk_c_question_dialog_answer_entry_changed_cb 
(GtkEntry *entry,
 
   a = GTK_ENTRY (gtk_builder_get_object (builder,
                                          
"anastasis_gtk_c_question_dialog_answer_entry"));
-  as = gtk_entry_get_text (a);  
+  as = gtk_entry_get_text (a);
   gtk_widget_set_sensitive (
-                            GTK_WIDGET (gtk_builder_get_object (builder,
-                                                                
"anastasis_gtk_c_question_dialog_btn_ok")),
-                            (NULL != as) &&
-                            (0 < strlen (as)));
+    GTK_WIDGET (gtk_builder_get_object (builder,
+                                        
"anastasis_gtk_c_question_dialog_btn_ok")),
+    (NULL != as) &&
+    (0 < strlen (as)));
 }
diff --git a/src/anastasis/anastasis-gtk_helper.h 
b/src/anastasis/anastasis-gtk_helper.h
index c346cef..79f7d53 100644
--- a/src/anastasis/anastasis-gtk_helper.h
+++ b/src/anastasis/anastasis-gtk_helper.h
@@ -37,108 +37,106 @@
  * Columns of the continent_liststore.
  */
 enum AG_ContinentsModelColumns
-  {
-   /**
-    * A gchararray.
-    */
-   AG_CMC_CONTINENT_NAME = 0
-  };
+{
+  /**
+   * A gchararray.
+   */
+  AG_CMC_CONTINENT_NAME = 0
+};
 
 
 /**
  * Columns of the provider_liststore.
  */
 enum AG_ProviderModelColumns
-  {
-   /**
-    * A gchararray.
-    */
-   AG_PMC_PROVIDER_URL = 0
-  };
+{
+  /**
+   * A gchararray.
+   */
+  AG_PMC_PROVIDER_URL = 0
+};
 
 /**
  * Columns of the country_liststore.
  */
 enum AG_CountryCodeModelColumns
-  {
-   /**
-    * A gchararray.
-    */
-   AG_CCMC_COUNTRY_NAME = 0,
-   /**
-    * A gchararray.
-    */
-   AG_CCMC_COUNTRY_CODE = 1,
-   /**
-    * A gchararray.
-    */
-   AG_CCMC_COUNTRY_CURRENCY = 2
-  };
+{
+  /**
+   * A gchararray.
+   */
+  AG_CCMC_COUNTRY_NAME = 0,
+  /**
+   * A gchararray.
+   */
+  AG_CCMC_COUNTRY_CODE = 1,
+  /**
+   * A gchararray.
+   */
+  AG_CCMC_COUNTRY_CURRENCY = 2
+};
 
 /**
  * Columns of the authentication_methods_liststore.
  */
 enum AG_AuthenticationMethodsModelColumns
-  {
-   /**
-    * A gchararray.
-    */
-   AG_AMMC_TYPE = 0,
-   /**
-    * A gchararray.
-    */
-   AG_AMMC_VISUALIZATION = 1,
-   /**
-    * A guint.
-    */
-   AG_AMMC_INDEX = 2
-  };
+{
+  /**
+   * A gchararray.
+   */
+  AG_AMMC_TYPE = 0,
+  /**
+   * A gchararray.
+   */
+  AG_AMMC_VISUALIZATION = 1,
+  /**
+   * A guint.
+   */
+  AG_AMMC_INDEX = 2
+};
 
 
 /**
  * Columns of the unpaid_qrcodes_liststore.
  */
 enum AG_UnpaidQrcodesModelColumns
-  {
-   /**
-    * A GdkPixbuf.
-    */
-   AG_UQRMC_QR_IMAGE = 0,
-   /**
-    * A gchararray.
-    */
-   AG_UQRMC_URL = 1,
-   /**
-    * A gchararray.
-    */
-   AG_UQRMC_PROVIDER = 2
-  };
-
-  
+{
+  /**
+   * A GdkPixbuf.
+   */
+  AG_UQRMC_QR_IMAGE = 0,
+  /**
+   * A gchararray.
+   */
+  AG_UQRMC_URL = 1,
+  /**
+   * A gchararray.
+   */
+  AG_UQRMC_PROVIDER = 2
+};
+
+
 /**
  * Columns of the policy_review_treestore.
  */
 enum AG_PolicyReviewModelColumns
-  {
-   /**
-    * A gchararray.
-    */
-   AG_PRMC_POLICY_NAME = 0,
-   /**
-    * A gchararray.
-    */
-   AG_PRMC_METHOD_TYPE = 1,
-   /**
-    * A gchararray.
-    */
-   AG_PRMC_COST = 2,
-   /**
-    * A gchararray.
-    */
-   AG_PRMC_PROVIDER_URL = 3
-  };
-
-
+{
+  /**
+   * A gchararray.
+   */
+  AG_PRMC_POLICY_NAME = 0,
+  /**
+   * A gchararray.
+   */
+  AG_PRMC_METHOD_TYPE = 1,
+  /**
+   * A gchararray.
+   */
+  AG_PRMC_COST = 2,
+  /**
+   * A gchararray.
+   */
+  AG_PRMC_PROVIDER_URL = 3
+};
 
 
 /**

-- 
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]