[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r20724 - gnunet-gtk/src/gns
From: |
gnunet |
Subject: |
[GNUnet-SVN] r20724 - gnunet-gtk/src/gns |
Date: |
Fri, 23 Mar 2012 15:46:36 +0100 |
Author: wachs
Date: 2012-03-23 15:46:36 +0100 (Fri, 23 Mar 2012)
New Revision: 20724
Modified:
gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
Log:
- changes for editing
Modified: gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c
===================================================================
--- gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c 2012-03-23 14:18:09 UTC (rev
20723)
+++ gnunet-gtk/src/gns/gnunet-gns-gtk_zone.c 2012-03-23 14:46:36 UTC (rev
20724)
@@ -199,10 +199,7 @@
g_free (n_value_color);
if (FALSE == gtk_tree_model_iter_next (gns->tm, &it))
- {
- GNUNET_break (0);
break;
- }
}
if (GNUNET_NO == valid)
@@ -288,6 +285,7 @@
if (TRUE == gtk_tree_model_iter_parent (gns->tm, &parent, &it))
{
+ /* Removing a single record */
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Removing single record for name `%s'\n", name);
@@ -337,14 +335,20 @@
GNUNET_NAMESTORE_record_remove(gns->ns, gns->pkey, name, &rd,
&check_name_validity_and_remove_proc, rcc);
GNUNET_free ((void *) rd.data);
}
+ else
+ {
+ gtk_tree_model_get_iter_from_string(gns->tm, &it, path);
+ gtk_tree_store_remove (gns->ts, &it);
+ }
g_free (n_name);
g_free (n_exp_color);
g_free (n_exp_str);
g_free (n_value);
g_free (n_value_color);
}
- else
+ else if (0 != strcmp (name, "+"))
{
+ /* Removing the whole name record */
rcc = GNUNET_malloc(sizeof (struct Remove_Context));
rcc->gns = gns;
rcc->path = strdup (path);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r20724 - gnunet-gtk/src/gns,
gnunet <=