gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis-gtk] branch master updated: add dynamic logic for 'this


From: gnunet
Subject: [taler-anastasis-gtk] branch master updated: add dynamic logic for 'this stays private'
Date: Fri, 09 Jul 2021 11:05:48 +0200

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 82eb9f0  add dynamic logic for 'this stays private'
82eb9f0 is described below

commit 82eb9f02cf86756e5be17a75fae1b3e55a8f5882
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Jul 9 11:05:45 2021 +0200

    add dynamic logic for 'this stays private'
---
 src/anastasis/anastasis-gtk_action.c | 37 +++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/src/anastasis/anastasis-gtk_action.c 
b/src/anastasis/anastasis-gtk_action.c
index 73efb4a..5be0c95 100644
--- a/src/anastasis/anastasis-gtk_action.c
+++ b/src/anastasis/anastasis-gtk_action.c
@@ -299,6 +299,7 @@ create_attribute_widget (const struct GNUNET_HashCode *uh,
   for (unsigned int i = 0; NULL != type_map[i].type; i++)
   {
     GtkBox *box;
+    GtkBox *vbox;
 
     if (0 != strcmp (type_map[i].type,
                      type))
@@ -308,6 +309,8 @@ create_attribute_widget (const struct GNUNET_HashCode *uh,
     gtk_widget_show (w);
     box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL,
                                 5 /* spacing in pixels */));
+    vbox = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL,
+                                 5 /* spacing in pixels */));
     {
       GtkWidget *glabel;
 
@@ -332,6 +335,38 @@ create_attribute_widget (const struct GNUNET_HashCode *uh,
                         false,   /* fill */
                         5);      /* padding */
     gtk_widget_show (GTK_WIDGET (box));
+    gtk_box_pack_start (vbox,       /* parent */
+                        GTK_WIDGET (box),       /* child */
+                        false,   /* expand */
+                        false,   /* fill */
+                        5);      /* padding */
+    {
+      GtkWidget *private_widget;
+      GtkBuilder *builder;
+      GtkBin *bin;
+
+      builder =
+        GNUNET_GTK_get_new_builder ("this_stays_private.glade",
+                                    NULL);
+      GNUNET_break (NULL != builder);
+      /* load frame */
+      bin = GTK_BIN (gtk_builder_get_object (builder,
+                                             "private_dummy_window"));
+      GNUNET_break (NULL != bin);
+      private_widget = gtk_bin_get_child (bin);
+      GNUNET_break (NULL != private_widget);
+      g_object_ref (private_widget);
+      gtk_container_remove (GTK_CONTAINER (bin),
+                            private_widget);
+      gtk_widget_destroy (GTK_WIDGET (bin));
+      g_object_unref (G_OBJECT (builder));
+      gtk_box_pack_start (vbox,       /* parent */
+                          private_widget,       /* child */
+                          false,   /* expand */
+                          false,   /* fill */
+                          5);      /* padding */
+    }
+    gtk_widget_show (GTK_WIDGET (vbox));
     GNUNET_assert (GNUNET_OK ==
                    GNUNET_CONTAINER_multihashmap_put (AG_entry_attributes,
                                                       uh,
@@ -343,7 +378,7 @@ create_attribute_widget (const struct GNUNET_HashCode *uh,
       pbox = GTK_BOX (GCG_get_main_window_object (
                         "anastasis_gtk_identity_vbox"));
       gtk_box_pack_start (pbox,    /* parent */
-                          GTK_WIDGET (box),   /* child */
+                          GTK_WIDGET (vbox),   /* child */
                           false, /* expand */
                           false, /* fill */
                           5); /* padding */

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