gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r13511 - in gnunet-setup: . src


From: gnunet
Subject: [GNUnet-SVN] r13511 - in gnunet-setup: . src
Date: Tue, 2 Nov 2010 23:26:56 +0100

Author: grothoff
Date: 2010-11-02 23:26:56 +0100 (Tue, 02 Nov 2010)
New Revision: 13511

Modified:
   gnunet-setup/TODO
   gnunet-setup/src/gnunet-setup-options.c
Log:
fun

Modified: gnunet-setup/TODO
===================================================================
--- gnunet-setup/TODO   2010-11-02 22:20:53 UTC (rev 13510)
+++ gnunet-setup/TODO   2010-11-02 22:26:56 UTC (rev 13511)
@@ -1,10 +1,14 @@
 * More glade work:
+  - HTTPS, WLAN, DV setup tabs
+  - clone datastore setup tab for datacache setup 
   - VPN configuration
-  - clone datastore setup tab for datacache setup 
-  - HTTPS, WLAN, DV setup tabs
 * specify general UI elements 
-  - create mappings
-  - write WWW documentation for UI elements
+  - transport tab 
+  - fs tab
+  - write WWW documentation for UI elements:
+    + general tab
+    + transport tab
+    + fs tab
 * handle special cases:
   - hostlist URL manipulation (context menu!)
   - sanity checks: 

Modified: gnunet-setup/src/gnunet-setup-options.c
===================================================================
--- gnunet-setup/src/gnunet-setup-options.c     2010-11-02 22:20:53 UTC (rev 
13510)
+++ gnunet-setup/src/gnunet-setup-options.c     2010-11-02 22:26:56 UTC (rev 
13511)
@@ -373,6 +373,48 @@
                        GObject *widget,
                        struct GNUNET_CONFIGURATION_Handle *cfg)
 {
+  GtkTreeModel *tm;
+  GtkTreeIter iter;
+  char *value;
+  char *n;
+  char *val;
+
+  tm = GTK_TREE_MODEL (widget);
+  if (tm == NULL)
+    return GNUNET_SYSERR;
+  value = NULL;
+  if (TRUE == gtk_tree_model_get_iter_first (tm, &iter))
+    {
+      do
+       {
+         gtk_tree_model_get (tm,
+                             &iter,
+                             0, &val,
+                             -1);
+         if (value == NULL)
+           {
+             value = GNUNET_strdup (val);
+           }
+         else
+           {
+             GNUNET_asprintf (&n,
+                              "%s %s",                        
+                              value,
+                              val);
+             GNUNET_free (value);
+             value = n;
+           }
+         g_free (val);
+       }
+      while (TRUE == gtk_tree_model_iter_next (tm, &iter));
+    }
+  if (value == NULL)
+    value = GNUNET_strdup ("");
+  GNUNET_CONFIGURATION_set_value_string (cfg,
+                                        section,
+                                        option,
+                                        value);
+  GNUNET_free (value);  
   return GNUNET_OK;
 }
 




reply via email to

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