nautilus r14023 - in branches/gnome-2-22: . libnautilus-private



Author: mjc
Date: Tue Apr  1 18:43:12 2008
New Revision: 14023
URL: http://svn.gnome.org/viewvc/nautilus?rev=14023&view=rev

Log:
2008-04-01  Michael J. Chudobiak  <mjc svn gnome org>

        * libnautilus-private/nautilus-file.c: (nautilus_file_get_icon):
        Skip the thumbnailing of unreadable files. This is more efficient
        than relying on failed thumbnails. (#525594).



Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/libnautilus-private/nautilus-file.c

Modified: branches/gnome-2-22/libnautilus-private/nautilus-file.c
==============================================================================
--- branches/gnome-2-22/libnautilus-private/nautilus-file.c	(original)
+++ branches/gnome-2-22/libnautilus-private/nautilus-file.c	Tue Apr  1 18:43:12 2008
@@ -3393,6 +3393,7 @@
 			g_object_unref (scaled_pixbuf);
 			return icon;
 		} else if (file->details->thumbnail_path == NULL &&
+			   file->details->can_read &&				
 			   !file->details->thumbnailing_failed &&
 			   !file->details->is_thumbnailing) {
 			if (nautilus_can_thumbnail (file)) {



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