cheese r840 - in trunk: . src



Author: fargiolas
Date: Tue Aug  5 11:30:30 2008
New Revision: 840
URL: http://svn.gnome.org/viewvc/cheese?rev=840&view=rev

Log:
Save generated thumbnails. It seems I removed it without notice, sorry.


Modified:
   trunk/ChangeLog
   trunk/src/cheese-thumb-view.c

Modified: trunk/src/cheese-thumb-view.c
==============================================================================
--- trunk/src/cheese-thumb-view.c	(original)
+++ trunk/src/cheese-thumb-view.c	Tue Aug  5 11:30:30 2008
@@ -109,12 +109,16 @@
 
   thumb_loc = gnome_thumbnail_factory_lookup (factory, uri, mtime.tv_sec);
 
+  if (!thumb_loc) g_message ("no thumbloc");
+
   if (!thumb_loc)
   {
     pixbuf = gnome_thumbnail_factory_generate_thumbnail (factory, uri, mime_type);
     if (!pixbuf)
     {
       g_warning ("could not generate thumbnail for %s (%s)\n", filename, mime_type);
+    } else {
+      gnome_thumbnail_factory_save_thumbnail (factory, pixbuf, uri, mtime.tv_sec);
     }
   }
   else



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