[f-spot] IOChannel has to die at some point.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] IOChannel has to die at some point.
- Date: Sat, 5 Jun 2010 20:54:32 +0000 (UTC)
commit cddfe16d38c0a468de1ef2ea596cddaf7455c3df
Author: Ruben Vermeersch <ruben savanne be>
Date: Sat Jun 5 16:54:44 2010 +0200
IOChannel has to die at some point.
src/IOChannel.cs | 34 +---------------------------------
1 files changed, 1 insertions(+), 33 deletions(-)
---
diff --git a/src/IOChannel.cs b/src/IOChannel.cs
index 76fafd6..860a56d 100644
--- a/src/IOChannel.cs
+++ b/src/IOChannel.cs
@@ -233,41 +233,9 @@ namespace FSpot {
End
}
- [DllImport("libglib-2.0-0.dll")]
- static extern IOStatus g_io_channel_seek_position (HandleRef handle, long offset, SeekType type, out IntPtr error);
-
public override long Seek (long position, SeekOrigin origin)
{
-#if false
- // GIOChannels have the interesting property of having a seek interface
- // but no method to retrieve the current position or length.
- // we could support these actions for unix iochannels with extra work
- // but for now we'll just disable them.
-
- SeekType type;
- IntPtr error;
- long final;
-
- switch (origin) {
- case SeekOrigin.Begin:
- type = SeekType.Set;
- break;
- case SeekOrigin.Current:
-
- break;
- }
-
- g_io_channel_seek_position (handle, position, type, out error);
-
- if (error != IntPtr.Zero)
- throw new GException (error);
-
- if (SeekOrigin == SeekOrigin.Begin)
- return position;
- else
-#else
- throw new NotSupportedException ();
-#endif
+ throw new NotSupportedException ();
}
[DllImport("libglib-2.0-0.dll")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]