gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r24922 - gnunet-gtk/src/fs
Date: Tue, 13 Nov 2012 03:06:47 +0100

Author: LRN
Date: 2012-11-13 03:06:47 +0100 (Tue, 13 Nov 2012)
New Revision: 24922

Modified:
   gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c
Log:
Fix the problem with the preview image, also clean up code

Modified: gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c     2012-11-13 00:22:35 UTC 
(rev 24921)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c     2012-11-13 02:06:47 UTC 
(rev 24922)
@@ -1748,7 +1748,6 @@
   struct GNUNET_GTK_MainWindowContext *mctx = GNUNET_FS_GTK_get_main_context 
();
 
   GNUNET_assert (tab->query_txt != NULL);
-  sel = gtk_tree_view_get_selection (tv);
   gtk_list_store_clear (mctx->md_liststore);
   sel = gtk_tree_view_get_selection (tv);
   if (! gtk_tree_selection_get_selected (sel, &model, &iter))
@@ -1793,7 +1792,6 @@
 
     gtk_entry_set_text (mctx->download_name_entry, filename != NULL ? filename 
: NULL);
     gtk_file_chooser_set_current_folder (mctx->download_location_chooser, 
download_directory);
-    /*gtk_file_chooser_set_current_name (mctx->download_location_chooser, 
download_directory);*/
     
     gtk_widget_show_all (GTK_WIDGET (mctx->download_panel));
     GNUNET_free (filename);
@@ -1807,7 +1805,10 @@
     gtk_image_set_from_pixbuf (mctx->preview_image, pixbuf);
     g_object_unref (G_OBJECT (pixbuf));
   }
-  if (NULL != meta)  
+  else
+    gtk_image_clear (mctx->preview_image);
+
+  if (NULL != meta)
     GNUNET_CONTAINER_meta_data_iterate (meta,
                                         
&GNUNET_FS_GTK_add_meta_data_to_list_store,
                                         mctx->md_liststore);




reply via email to

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