diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-03 14:30:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-03 14:30:34 +0000 |
commit | 25bb956e3af73989774c34b2e2a5bdd28845ca87 (patch) | |
tree | f32cf6ed7a901664f246c10176078ce322a191ce | |
parent | 9c7e829ef08827951f2c8d17ba1a1e632ae27e7f (diff) | |
download | gnunet-gtk-25bb956e3af73989774c34b2e2a5bdd28845ca87.tar.gz gnunet-gtk-25bb956e3af73989774c34b2e2a5bdd28845ca87.zip |
-LRN: be able to remove non-downloaded search results
-rw-r--r-- | src/fs/gnunet-fs-gtk-event_handler.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk-event_handler.c b/src/fs/gnunet-fs-gtk-event_handler.c index 26790f01..a77bd65d 100644 --- a/src/fs/gnunet-fs-gtk-event_handler.c +++ b/src/fs/gnunet-fs-gtk-event_handler.c | |||
@@ -135,6 +135,9 @@ abort_download_ctx_menu (GtkMenuItem *item, gpointer user_data); | |||
135 | static void | 135 | static void |
136 | copy_uri_to_clipboard_ctx_menu (GtkMenuItem *item, gpointer user_data); | 136 | copy_uri_to_clipboard_ctx_menu (GtkMenuItem *item, gpointer user_data); |
137 | 137 | ||
138 | static void | ||
139 | free_search_result (struct SearchResult *sr); | ||
140 | |||
138 | static gboolean | 141 | static gboolean |
139 | search_list_popup (GtkTreeView *tv, struct SearchTab *tab, GdkEventButton *event_button) | 142 | search_list_popup (GtkTreeView *tv, struct SearchTab *tab, GdkEventButton *event_button) |
140 | { | 143 | { |
@@ -1268,6 +1271,8 @@ clear_downloads (GtkButton * button, gpointer user_data) | |||
1268 | gtk_tree_model_get (tm, &iter, 9, &sr, -1); | 1271 | gtk_tree_model_get (tm, &iter, 9, &sr, -1); |
1269 | if ((sr->download != NULL) && (sr->download->is_done == GNUNET_YES)) | 1272 | if ((sr->download != NULL) && (sr->download->is_done == GNUNET_YES)) |
1270 | GNUNET_FS_download_stop (sr->download->dc, GNUNET_YES); | 1273 | GNUNET_FS_download_stop (sr->download->dc, GNUNET_YES); |
1274 | else | ||
1275 | free_search_result (sr); | ||
1271 | } | 1276 | } |
1272 | while (TRUE == gtk_tree_model_iter_next (tm, &iter)); | 1277 | while (TRUE == gtk_tree_model_iter_next (tm, &iter)); |
1273 | } | 1278 | } |