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



Author: sdelcroix
Date: Tue Jan  8 14:13:09 2008
New Revision: 3531
URL: http://svn.gnome.org/viewvc/f-spot?rev=3531&view=rev

Log:
2008-01-08  Stephane Delcroix  <sdelcroix novell com>

	* src/Imaging/RafFile.cs: fixing bgo 505965.


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

Modified: trunk/src/Imaging/RafFile.cs
==============================================================================
--- trunk/src/Imaging/RafFile.cs	(original)
+++ trunk/src/Imaging/RafFile.cs	Tue Jan  8 14:13:09 2008
@@ -71,17 +71,7 @@
  
 		public override Gdk.Pixbuf Load ()
 		{
-			// FIXME this is a hack. No, really, I mean it.
-			
-			byte [] data = GetEmbeddedJpeg ();
-			if (data != null) {
-				Gdk.PixbufLoader loader = new Gdk.PixbufLoader ();
-				loader.Write (data, (ulong)data.Length);
-				Gdk.Pixbuf pixbuf = loader.Pixbuf;
-				loader.Close ();
-				return pixbuf;
-			}
-			return null;
+			return new Gdk.Pixbuf (PixbufStream ());
 		}
 
 		public override Gdk.Pixbuf Load (int width, int height)



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