[f-spot/replace-import: 4/5] IOChannel has to die at some point.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/replace-import: 4/5] IOChannel has to die at some point.
- Date: Sat, 5 Jun 2010 16:41:21 +0000 (UTC)
commit 23452215d98f297944dec63330b4b67cd7b7e226
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]