Revision: 1126
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1126&view=rev
Author:   nadvornik
Date:     2008-09-03 19:52:11 +0000 (Wed, 03 Sep 2008)

Log Message:
-----------
fixed handling of broken images

Modified Paths:
--------------
    trunk/src/image.c

Modified: trunk/src/image.c
===================================================================
--- trunk/src/image.c   2008-09-01 19:18:32 UTC (rev 1125)
+++ trunk/src/image.c   2008-09-03 19:52:11 UTC (rev 1126)
@@ -422,10 +422,6 @@
                        g_object_ref(imd->read_ahead_fd->pixbuf);
                        image_cache_set(imd, imd->read_ahead_fd);
                        }
-               else
-                       {
-                       imd->read_ahead_fd->pixbuf = 
pixbuf_inline(PIXBUF_INLINE_BROKEN);
-                       }
                }
        image_loader_free(imd->read_ahead_il);
        imd->read_ahead_il = NULL;
@@ -562,7 +558,17 @@
                image_cache_set(imd, imd->image_fd);
                }
 
-       if (imd->delay_flip &&
+       if (!image_loader_get_pixbuf(imd->il))
+               {
+               GdkPixbuf *pixbuf;
+
+               pixbuf = pixbuf_inline(PIXBUF_INLINE_BROKEN);
+               image_change_pixbuf(imd, pixbuf, image_zoom_get(imd));
+               g_object_unref(pixbuf);
+
+               imd->unknown = TRUE;
+               }
+       else if (imd->delay_flip &&
            image_get_pixbuf(imd) != image_loader_get_pixbuf(imd->il))
                {
                g_object_set(G_OBJECT(imd->pr), "complete", FALSE, NULL);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to