[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18955 - gnunet-gtk/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18955 - gnunet-gtk/src/fs |
Date: |
Tue, 3 Jan 2012 15:30:35 +0100 |
Author: grothoff
Date: 2012-01-03 15:30:34 +0100 (Tue, 03 Jan 2012)
New Revision: 18955
Modified:
gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
Log:
-LRN: be able to remove non-downloaded search results
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c 2012-01-03 13:34:45 UTC
(rev 18954)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk-event_handler.c 2012-01-03 14:30:34 UTC
(rev 18955)
@@ -135,6 +135,9 @@
static void
copy_uri_to_clipboard_ctx_menu (GtkMenuItem *item, gpointer user_data);
+static void
+free_search_result (struct SearchResult *sr);
+
static gboolean
search_list_popup (GtkTreeView *tv, struct SearchTab *tab, GdkEventButton
*event_button)
{
@@ -1268,6 +1271,8 @@
gtk_tree_model_get (tm, &iter, 9, &sr, -1);
if ((sr->download != NULL) && (sr->download->is_done == GNUNET_YES))
GNUNET_FS_download_stop (sr->download->dc, GNUNET_YES);
+ else
+ free_search_result (sr);
}
while (TRUE == gtk_tree_model_iter_next (tm, &iter));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18955 - gnunet-gtk/src/fs,
gnunet <=