[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20553 - gnunet-gtk/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20553 - gnunet-gtk/src/gns |
Date: |
Thu, 15 Mar 2012 22:24:50 +0100 |
Author: wachs
Date: 2012-03-15 22:24:50 +0100 (Thu, 15 Mar 2012)
New Revision: 20553
Modified:
gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
Log:
- add rows for records
Modified: gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
===================================================================
--- gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c 2012-03-15 21:24:20 UTC (rev
20552)
+++ gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c 2012-03-15 21:24:50 UTC (rev
20553)
@@ -166,19 +166,24 @@
const struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded
*zone_key,
struct GNUNET_TIME_Absolute expire,
const char *name,
- unsigned int rd_len,
+ unsigned int rd_count,
const struct GNUNET_NAMESTORE_RecordData *rd,
const struct GNUNET_CRYPTO_RsaSignature *signature)
{
struct ZoneIteration_Context * zc_ctx = cls;
GtkTreeIter toplevel;
+ GtkTreeIter child;
+ int c;
+
GNUNET_assert (zc_ctx != NULL);
if ((NULL == zone_key) && (NULL == name))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone `%s 'iteration done\n",
GNUNET_h2s(&zc_ctx->zone));
+ GNUNET_free (zc_ctx);
return;
}
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone `%s' iteration result `%s'\n",
GNUNET_h2s(&zc_ctx->zone), name);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Zone `%s' iteration result `%s', %u
records\n",
+ GNUNET_h2s(&zc_ctx->zone), name, rd_count);
GNUNET_assert(GTK_IS_TREE_STORE(zc_ctx->ts));
gtk_tree_store_append(zc_ctx->ts, &toplevel, NULL);
@@ -186,6 +191,13 @@
gtk_tree_store_set(zc_ctx->ts, &toplevel,
TREE_COL_NAME, name,
-1);
+
+ /* Append elements for records */
+ for (c = 0; c < rd_count; c ++)
+ {
+ gtk_tree_store_append(zc_ctx->ts, &child, &toplevel);
+ }
+
GNUNET_NAMESTORE_zone_iterator_next(zc_ctx->it);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20553 - gnunet-gtk/src/gns,
gnunet <=