f-spot r4258 - in trunk: . src/Widgets



Author: rubenv
Date: Wed Aug 13 22:24:28 2008
New Revision: 4258
URL: http://svn.gnome.org/viewvc/f-spot?rev=4258&view=rev

Log:
2008-08-14  Ruben Vermeersch  <ruben savanne be>

	* src/Widgets/EditorPage.cs: Don't crash when a user tries to edit a RAW
	file, give them some help instead.


Modified:
   trunk/ChangeLog
   trunk/src/Widgets/EditorPage.cs

Modified: trunk/src/Widgets/EditorPage.cs
==============================================================================
--- trunk/src/Widgets/EditorPage.cs	(original)
+++ trunk/src/Widgets/EditorPage.cs	Wed Aug 13 22:24:28 2008
@@ -26,6 +26,7 @@
 
 using FSpot;
 using FSpot.Editors;
+using FSpot.UI.Dialog;
 using FSpot.Utils;
 
 using Gtk;
@@ -190,7 +191,21 @@
 				return;
 
 			// TODO: Might need to do some nicer things for multiple selections (progress?)
-			editor.Apply ();
+			try {
+				editor.Apply ();
+			} catch (Exception e) {
+				string msg = Catalog.GetString ("Error saving adjusted photo(s)");
+				string desc = String.Format (Catalog.GetString ("Received exception \"{0}\". Note that you have to develop RAW files into JPEG before you can edit them."),
+							     e.Message);
+
+				HigMessageDialog md = new HigMessageDialog (MainWindow.Toplevel.Window,
+									    DialogFlags.DestroyWithParent,
+									    Gtk.MessageType.Error, ButtonsType.Ok,
+									    msg,
+									    desc);
+				md.Run ();
+				md.Destroy ();
+			}
 			ShowTools ();
 		}
 



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