totem r5526 - in trunk: . src/plugins/thumbnail



Author: hadess
Date: Tue Jul 29 08:26:52 2008
New Revision: 5526
URL: http://svn.gnome.org/viewvc/totem?rev=5526&view=rev

Log:
2008-07-29  Bastien Nocera  <hadess hadess net>

	* src/plugins/thumbnail/totem-thumbnail.c (update_from_state):
	Look for the thumbnail in the normal and large thumbnails, not
	twice in the normal ones, spotted by Robin Stocker <robin nibor org>



Modified:
   trunk/ChangeLog
   trunk/src/plugins/thumbnail/totem-thumbnail.c

Modified: trunk/src/plugins/thumbnail/totem-thumbnail.c
==============================================================================
--- trunk/src/plugins/thumbnail/totem-thumbnail.c	(original)
+++ trunk/src/plugins/thumbnail/totem-thumbnail.c	Tue Jul 29 08:26:52 2008
@@ -129,12 +129,13 @@
 				      NULL);
 
 	pixbuf = gdk_pixbuf_new_from_file (file_name, &err);
+	/* Try loading from the "large" thumbnails if normal fails */
 	if (pixbuf == NULL && err != NULL && err->domain == G_FILE_ERROR) {
 		g_clear_error (&err);
 		g_free (file_name);
 		file_name= g_build_filename (g_get_home_dir (),
 					     ".thumbnails",
-					     "normal",
+					     "large",
 					     file_basename,
 					     NULL);
 



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