aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_event-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_event-handler.c')
-rw-r--r--src/fs/gnunet-fs-gtk_event-handler.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c
index e77f7fd5..fb2d0056 100644
--- a/src/fs/gnunet-fs-gtk_event-handler.c
+++ b/src/fs/gnunet-fs-gtk_event-handler.c
@@ -1046,7 +1046,8 @@ close_search_tab (struct SearchTab *tab)
1046 if (NULL != tab->atv) 1046 if (NULL != tab->atv)
1047 GNUNET_GTK_animation_tree_view_unregister (tab->atv); 1047 GNUNET_GTK_animation_tree_view_unregister (tab->atv);
1048 GNUNET_free (tab); 1048 GNUNET_free (tab);
1049 if (NULL == search_tab_head) 1049 if ( (NULL == search_tab_head) &&
1050 (NULL == uri_tab) )
1050 { 1051 {
1051 GNUNET_GTK_animation_context_destroy (animation_downloading); 1052 GNUNET_GTK_animation_context_destroy (animation_downloading);
1052 animation_downloading = NULL; 1053 animation_downloading = NULL;
@@ -1058,12 +1059,22 @@ close_search_tab (struct SearchTab *tab)
1058 animation_searching_sources = NULL; 1059 animation_searching_sources = NULL;
1059 GNUNET_GTK_animation_context_destroy (animation_found_sources); 1060 GNUNET_GTK_animation_context_destroy (animation_found_sources);
1060 animation_found_sources = NULL; 1061 animation_found_sources = NULL;
1061
1062 } 1062 }
1063} 1063}
1064 1064
1065 1065
1066/** 1066/**
1067 * Close the 'uri_tab'.
1068 */
1069void
1070GNUNET_FS_GTK_close_uri_tab_ ()
1071{
1072 if (NULL != uri_tab)
1073 close_search_tab (uri_tab);
1074}
1075
1076
1077/**
1067 * Copy all of the children of 'src_iter' from the 'src_model' to 1078 * Copy all of the children of 'src_iter' from the 'src_model' to
1068 * become children of 'dst_iter' in the 'dst_model'. The models are 1079 * become children of 'dst_iter' in the 'dst_model'. The models are
1069 * both 'GNUNET_GTK_file_sharing_result_tree_store' models. 1080 * both 'GNUNET_GTK_file_sharing_result_tree_store' models.
@@ -2605,6 +2616,7 @@ setup_download (struct DownloadEntry *de, struct DownloadEntry *pde,
2605 SEARCH_TAB_MC_COMPLETED, (guint64) completed, 2616 SEARCH_TAB_MC_COMPLETED, (guint64) completed,
2606 SEARCH_TAB_MC_FILENAME, de->filename, 2617 SEARCH_TAB_MC_FILENAME, de->filename,
2607 SEARCH_TAB_MC_DOWNLOADED_ANONYMITY, de->anonymity, 2618 SEARCH_TAB_MC_DOWNLOADED_ANONYMITY, de->anonymity,
2619 SEARCH_TAB_MC_STATUS_ICON,
2608 GNUNET_GTK_animation_context_get_pixbuf (animation_download_stalled), 2620 GNUNET_GTK_animation_context_get_pixbuf (animation_download_stalled),
2609 -1); 2621 -1);
2610 return de; 2622 return de;