[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis-gtk] branch master updated: introduce AG_hide_children
From: |
gnunet |
Subject: |
[taler-anastasis-gtk] branch master updated: introduce AG_hide_children |
Date: |
Mon, 08 Mar 2021 10:33:08 +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 b034fa8 introduce AG_hide_children
b034fa8 is described below
commit b034fa885d6cb6459887afe6b0c83ec88d89a303
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Mar 8 10:33:01 2021 +0100
introduce AG_hide_children
---
src/anastasis/anastasis-gtk_action.c | 18 +-----------------
src/anastasis/anastasis-gtk_helper.c | 26 ++++++++++++--------------
src/anastasis/anastasis-gtk_helper.h | 9 +++++++++
3 files changed, 22 insertions(+), 31 deletions(-)
diff --git a/src/anastasis/anastasis-gtk_action.c
b/src/anastasis/anastasis-gtk_action.c
index bf06886..54ea507 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -201,29 +201,13 @@ action_country_selecting (void)
static void
action_user_attributes_collecting (void)
{
- const char *country;
const json_t *id_attributes;
AG_hide_all_frames ();
-
- country = json_string_value (json_object_get (redux_state,
- "selected_country"));
- GNUNET_assert (NULL != country);
id_attributes = json_object_get (redux_state,
"required_attributes");
GNUNET_assert (NULL != id_attributes);
-
- {
- GList *children;
-
- children = gtk_container_get_children (GTK_CONTAINER (
- GCG_get_main_window_object (
-
"anastasis_gtk_identity_vbox")));
- for (GList *iter = children; iter != NULL; iter = g_list_next (iter))
- gtk_widget_hide (GTK_WIDGET (iter->data));
- g_list_free (children);
- }
-
+ AG_hide_children ("anastasis_gtk_identity_vbox");
{
size_t index;
json_t *id_attr;
diff --git a/src/anastasis/anastasis-gtk_helper.c
b/src/anastasis/anastasis-gtk_helper.c
index 458f925..b36400e 100644
--- a/src/anastasis/anastasis-gtk_helper.c
+++ b/src/anastasis/anastasis-gtk_helper.c
@@ -115,27 +115,25 @@ AG_show (const char *name)
void
-AG_hide_all_frames (void)
+AG_hide_children (const char *name)
{
GList *children;
- GList *iter;
- AG_hide ("anastasis_gtk_start_frame");
- /* hide frames */
children = gtk_container_get_children (GTK_CONTAINER (
- GCG_get_main_window_object (
- "anastasis_gtk_super_vbox")));
- for (iter = children; NULL != iter; iter = g_list_next (iter))
+ GCG_get_main_window_object (name)));
+ for (GList *iter = children; iter != NULL; iter = g_list_next (iter))
gtk_widget_hide (GTK_WIDGET (iter->data));
g_list_free (children);
- /* hide illustrations */
- children = gtk_container_get_children (GTK_CONTAINER (
- GCG_get_main_window_object (
-
"anastasis_gtk_illustration_vbox")));
- for (iter = children; NULL != iter; iter = g_list_next (iter))
- gtk_widget_hide (GTK_WIDGET (iter->data));
- g_list_free (children);
+}
+
+
+void
+AG_hide_all_frames (void)
+{
+ AG_hide ("anastasis_gtk_start_frame");
+ AG_hide_children ("anastasis_gtk_super_vbox");
+ AG_hide_children ("anastasis_gtk_illustration_vbox");
}
diff --git a/src/anastasis/anastasis-gtk_helper.h
b/src/anastasis/anastasis-gtk_helper.h
index 235f41b..89ef818 100644
--- a/src/anastasis/anastasis-gtk_helper.h
+++ b/src/anastasis/anastasis-gtk_helper.h
@@ -83,6 +83,15 @@ void
AG_freeze (void);
+/**
+ * Hide all of the children of the container widget @a name in the main window.
+ *
+ * @param name name of the object
+ */
+void
+AG_hide_children (const char *name);
+
+
/**
* Get an object from the main window.
*
--
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: introduce AG_hide_children,
gnunet <=