nemo r115 - trunk/gtk
- From: arj svn gnome org
- To: svn-commits-list gnome org
- Subject: nemo r115 - trunk/gtk
- Date: Tue, 5 Aug 2008 16:11:06 +0000 (UTC)
Author: arj
Date: Tue Aug 5 16:11:06 2008
New Revision: 115
URL: http://svn.gnome.org/viewvc/nemo?rev=115&view=rev
Log:
Don't die if no-preview.png is not found
Thanks Andrew Ruthven for the report
Modified:
trunk/gtk/DisplayItem.cs
Modified: trunk/gtk/DisplayItem.cs
==============================================================================
--- trunk/gtk/DisplayItem.cs (original)
+++ trunk/gtk/DisplayItem.cs Tue Aug 5 16:11:06 2008
@@ -95,10 +95,14 @@
set_picture_path();
- if (item.file.starred)
+ try {
+ if (item.file.starred)
picture = CairoDrawing.create_big_starred_image(pic_path);
- else
+ else
picture = CairoDrawing.create_image_with_border(pic_path);
+ } catch (Exception e) {
+ System.Console.WriteLine("failed to generate thumbnail, error: {0}", e.Message);
+ }
Gtk.Table picture_resizer = new Table(1,1, true); // for size
picture_wrapper = new EventBox(); // for events
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]