gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r7125 - gnunet-gtk/src/plugins/fs


From: gnunet
Subject: [GNUnet-SVN] r7125 - gnunet-gtk/src/plugins/fs
Date: Tue, 10 Jun 2008 13:15:07 -0600 (MDT)

Author: grothoff
Date: 2008-06-10 13:15:07 -0600 (Tue, 10 Jun 2008)
New Revision: 7125

Modified:
   gnunet-gtk/src/plugins/fs/download.c
   gnunet-gtk/src/plugins/fs/search.c
Log:
fixes

Modified: gnunet-gtk/src/plugins/fs/download.c
===================================================================
--- gnunet-gtk/src/plugins/fs/download.c        2008-06-10 17:31:00 UTC (rev 
7124)
+++ gnunet-gtk/src/plugins/fs/download.c        2008-06-10 19:15:07 UTC (rev 
7125)
@@ -427,7 +427,6 @@
 fs_download_stopped (DownloadList * list)
 {
   GtkTreeIter iter;
-  GtkTreeIter piter;
   GtkTreePath *path;
   DownloadList *prev;
   GtkTreeModel *model;
@@ -460,7 +459,7 @@
       else
         {
           model = GTK_TREE_MODEL (list->searchList->tree);
-          gtk_tree_model_get_iter (model, &piter, path);
+          gtk_tree_model_get_iter (model, &iter, path);
           gtk_tree_path_free (path);
          gtk_tree_store_set (list->searchList->tree,
                              &iter,

Modified: gnunet-gtk/src/plugins/fs/search.c
===================================================================
--- gnunet-gtk/src/plugins/fs/search.c  2008-06-10 17:31:00 UTC (rev 7124)
+++ gnunet-gtk/src/plugins/fs/search.c  2008-06-10 19:15:07 UTC (rev 7125)
@@ -955,6 +955,7 @@
 void
 fs_search_stopped (SearchList * list)
 {
+  GtkTreeIter iter;
   GtkNotebook *notebook;
   SearchList *prev;
   DownloadList *downloads;
@@ -998,6 +999,8 @@
       index = i;
   GNUNET_GE_BREAK (ectx, index != -1);
   gtk_notebook_remove_page (notebook, index);
+  if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (list->tree), &iter))
+    freeIterSubtree (GTK_TREE_MODEL (list->tree), &iter); 
   /* free list state itself */
   UNREF (list->searchXML);
   UNREF (list->labelXML);





reply via email to

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