[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7108 - gnunet-gtk/src/plugins/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7108 - gnunet-gtk/src/plugins/fs |
Date: |
Mon, 9 Jun 2008 10:08:19 -0600 (MDT) |
Author: grothoff
Date: 2008-06-09 10:08:19 -0600 (Mon, 09 Jun 2008)
New Revision: 7108
Modified:
gnunet-gtk/src/plugins/fs/download.c
Log:
fix
Modified: gnunet-gtk/src/plugins/fs/download.c
===================================================================
--- gnunet-gtk/src/plugins/fs/download.c 2008-06-09 15:41:12 UTC (rev
7107)
+++ gnunet-gtk/src/plugins/fs/download.c 2008-06-09 16:08:19 UTC (rev
7108)
@@ -450,8 +450,8 @@
GNUNET_free (list->filename);
GNUNET_ECRS_uri_destroy (list->uri);
- /* if we have child-results in view, remove them! */
- if (list->searchList != NULL)
+ if ( (list->searchList != NULL) &&
+ (list->searchViewRowReference != NULL) )
{
path = gtk_tree_row_reference_get_path (list->searchViewRowReference);
if (path == NULL)
@@ -463,9 +463,13 @@
model = GTK_TREE_MODEL (list->searchList->tree);
gtk_tree_model_get_iter (model, &piter, path);
gtk_tree_path_free (path);
- valid = gtk_tree_model_iter_children (model, &iter, &piter);
- while (TRUE == valid)
- valid = gtk_tree_store_remove (GTK_TREE_STORE (model), &iter);
+ gtk_tree_store_set (downloadContext->searchList->tree,
+ &iter,
+ SEARCH_STATUS,
+ getStatusName (GNUNET_URITRACK_DOWNLOAD_ABORTED),
+ SEARCH_STATUS_LOGO,
+ getStatusLogo (GNUNET_URITRACK_DOWNLOAD_ABORTED),
+ -1);
}
}
if (list->searchViewRowReference != NULL)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7108 - gnunet-gtk/src/plugins/fs,
gnunet <=