f-spot r4722 - in trunk: . src/Imaging



Author: sdelcroix
Date: Fri Feb 27 10:28:09 2009
New Revision: 4722
URL: http://svn.gnome.org/viewvc/f-spot?rev=4722&view=rev

Log:
2009-02-27  Stephane Delcroix  <sdelcroix novell com>

	* src/Imaging/ImageFile.cs: enable xcf support if there's a
	loader for it.

Modified:
   trunk/ChangeLog
   trunk/src/Imaging/ImageFile.cs

Modified: trunk/src/Imaging/ImageFile.cs
==============================================================================
--- trunk/src/Imaging/ImageFile.cs	(original)
+++ trunk/src/Imaging/ImageFile.cs	Fri Feb 27 10:28:09 2009
@@ -61,6 +61,15 @@
 			name_table [".mrw"] = typeof (FSpot.Mrw.MrwFile);
 			name_table [".raf"] = typeof (FSpot.Raf.RafFile);
 			name_table [".x3f"] = typeof (FSpot.X3f.X3fFile);
+
+			//as xcf pixbufloader is not part of gdk-pixbuf, check if it's there,
+			//and enable it if needed.
+			foreach (Gdk.PixbufFormat format in Gdk.Pixbuf.Formats)
+				if (format.Name == "xcf") {
+					if (format.Disabled)
+						format.Disabled = false;
+					name_table [".xcf"] = typeof (ImageFile);
+				}
 		}
 
 		public Uri Uri {



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