Revision: 1067
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1067&view=rev
Author:   nadvornik
Date:     2008-08-19 21:01:29 +0000 (Tue, 19 Aug 2008)

Log Message:
-----------
set fallback pixbuf in case of missing file

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

Modified: trunk/src/thumb_standard.c
===================================================================
--- trunk/src/thumb_standard.c  2008-08-19 20:58:23 UTC (rev 1066)
+++ trunk/src/thumb_standard.c  2008-08-19 21:01:29 UTC (rev 1067)
@@ -657,9 +657,13 @@
 
        thumb_loader_std_reset(tl);
 
-       if (!stat_utf8(fd->path, &st)) return FALSE;
 
        tl->fd = file_data_ref(fd);
+       if (!stat_utf8(fd->path, &st))
+               {
+               thumb_loader_std_set_fallback(tl);
+               return FALSE;
+               }
        tl->source_mtime = st.st_mtime;
        tl->source_size = st.st_size;
        tl->source_mode = st.st_mode;


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