[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7362 - gnunet-gtk/src/plugins/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7362 - gnunet-gtk/src/plugins/fs |
Date: |
Sat, 28 Jun 2008 23:42:44 -0600 (MDT) |
Author: grothoff
Date: 2008-06-28 23:42:44 -0600 (Sat, 28 Jun 2008)
New Revision: 7362
Modified:
gnunet-gtk/src/plugins/fs/namespace_search.c
Log:
improving namespace listing
Modified: gnunet-gtk/src/plugins/fs/namespace_search.c
===================================================================
--- gnunet-gtk/src/plugins/fs/namespace_search.c 2008-06-29 05:42:34 UTC
(rev 7361)
+++ gnunet-gtk/src/plugins/fs/namespace_search.c 2008-06-29 05:42:44 UTC
(rev 7362)
@@ -213,6 +213,7 @@
char *desc;
char *haveName;
int found;
+ char *fulldesc;
GNUNET_GTK_DEBUG_BEGIN ();
ncbe =
@@ -263,13 +264,23 @@
{
GNUNET_GTK_show_info_message (_("Namespace `%s' found: %s.\n"),
nni->namespaceName, desc);
+ fulldesc = GNUNET_malloc(strlen(desc) + strlen(nni->namespaceName) + 3);
+ strcpy(fulldesc, nni->namespaceName);
+ if (NULL == strstr(nni->namespaceName,
+ desc))
+ {
+ /* append only if desc adds something new! */
+ strcat(fulldesc, ": ");
+ strcat(fulldesc, desc);
+ }
gtk_list_store_append (model, &iter);
gtk_list_store_set (model,
&iter,
- NS_SEARCH_DESCRIPTION, desc,
+ NS_SEARCH_DESCRIPTION, fulldesc,
NS_SEARCH_NAME, nni->namespaceName,
NS_SEARCH_METADATA, dmd,
NS_SEARCH_RATING, nni->rating, -1);
+ GNUNET_free(fulldesc);
}
else
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7362 - gnunet-gtk/src/plugins/fs,
gnunet <=