gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r25596 - gnunet-gtk/src/fs


From: gnunet
Subject: [GNUnet-SVN] r25596 - gnunet-gtk/src/fs
Date: Thu, 20 Dec 2012 17:38:25 +0100

Author: LRN
Date: 2012-12-20 17:38:24 +0100 (Thu, 20 Dec 2012)
New Revision: 25596

Modified:
   gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c
Log:
Hide download panel when last tab is closed

Modified: gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c     2012-12-20 16:35:08 UTC 
(rev 25595)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c     2012-12-20 16:38:24 UTC 
(rev 25596)
@@ -1174,6 +1174,7 @@
   if ( (NULL == search_tab_head) &&
        (NULL == uri_tab) )
   {
+    struct GNUNET_GTK_MainWindowContext *mctx = GNUNET_FS_GTK_get_main_context 
();
     GNUNET_GTK_animation_context_destroy (animation_downloading);
     animation_downloading = NULL;
     GNUNET_GTK_animation_context_destroy (animation_downloaded);
@@ -1184,6 +1185,11 @@
     animation_searching_sources = NULL;
     GNUNET_GTK_animation_context_destroy (animation_found_sources);
     animation_found_sources = NULL;
+
+    gtk_widget_hide (GTK_WIDGET (mctx->download_panel));
+    if (current_selected_search_result != NULL)
+      gtk_tree_path_free (current_selected_search_result);
+    current_selected_search_result = NULL;
   }
 }
 




reply via email to

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