[gimp] app: GimpViewRendererImagefile: don't call g_file_query_info ("standard::icon")



commit 276ceddec9c9ca1aafb3774ed85c5e99f63b113a
Author: Michael Natterer <mitch gimp org>
Date:   Sun Jun 19 22:20:50 2011 +0200

    app: GimpViewRendererImagefile: don't call g_file_query_info ("standard::icon")
    
    This is a quick fix because the call can block and needs to be ported
    to the async API. I simply disabled the entire block that gets the
    icon from GIO.

 app/widgets/gimpviewrendererimagefile.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpviewrendererimagefile.c b/app/widgets/gimpviewrendererimagefile.c
index bae6a93..8c9e37e 100644
--- a/app/widgets/gimpviewrendererimagefile.c
+++ b/app/widgets/gimpviewrendererimagefile.c
@@ -164,6 +164,7 @@ gimp_view_renderer_imagefile_get_icon (GimpImagefile *imagefile,
   if (! gimp_object_get_name (imagefile))
     return NULL;
 
+#if 0
   if (! pixbuf)
     {
       GFile     *file;
@@ -198,6 +199,7 @@ gimp_view_renderer_imagefile_get_icon (GimpImagefile *imagefile,
 
       g_object_unref (file);
     }
+#endif
 
   if (! pixbuf && thumbnail->image_mimetype)
     {



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