f-spot r4661 - in trunk: . src/Imaging
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4661 - in trunk: . src/Imaging
- Date: Wed, 10 Dec 2008 14:11:16 +0000 (UTC)
Author: sdelcroix
Date: Wed Dec 10 14:11:16 2008
New Revision: 4661
URL: http://svn.gnome.org/viewvc/f-spot?rev=4661&view=rev
Log:
GioStream
2008-12-10 Stephane Delcroix <sdelcroix novell com>
* Imaging/ImageFile.cs: load images through GioStreams
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 Wed Dec 10 14:11:16 2008
@@ -27,14 +27,8 @@
protected Stream Open ()
{
- //Gnome.Vfs.Uri vfs = new Gnome.Vfs.Uri (uri.ToString ());
- // FIXME, this seems like the sane thing to do, but vfs streams seem to
- // actually be faster and they need more testing.
- //if (vfs.IsLocal)
- // return File.OpenRead (uri.LocalPath);
-
Log.DebugFormat ("open uri = {0}", uri.ToString ());
- return new Gnome.Vfs.VfsStream (uri.ToString (), FileMode.Open);
+ return new GLib.GioStream (GLib.FileFactory.NewForUri (uri).Read (null));
}
public virtual Stream PixbufStream ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]