[f-spot/FSPOT_0_6_0_STABLE] pass the HandleRef to g_io_channel_get_flags
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] pass the HandleRef to g_io_channel_get_flags
- Date: Fri, 21 Aug 2009 15:35:05 +0000 (UTC)
commit 5d840192b27dd71bbeae8e86bd86eac15ea99a54
Author: Stephane Delcroix <stephane delcroix org>
Date: Fri Aug 21 17:27:54 2009 +0200
pass the HandleRef to g_io_channel_get_flags
this fixes bgo591255, and I still wonder how it even worked before...
src/IOChannel.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/IOChannel.cs b/src/IOChannel.cs
index 2c1be4e..5d24891 100644
--- a/src/IOChannel.cs
+++ b/src/IOChannel.cs
@@ -55,11 +55,11 @@ namespace FSpot {
private delegate bool IOFunc (IntPtr source_channel, IOCondition cond, IntPtr data);
[DllImport("libglib-2.0-0.dll")]
- static extern IOFlags g_io_channel_get_flags ();
+ static extern IOFlags g_io_channel_get_flags (HandleRef channel);
public override bool CanRead {
get {
- IOFlags flags = g_io_channel_get_flags ();
+ IOFlags flags = g_io_channel_get_flags (handle);
return (flags & IOFlags.Readable) == IOFlags.Readable;
}
@@ -68,7 +68,7 @@ namespace FSpot {
public override bool CanSeek {
get {
#if NOTDONE
- IOFlags flags = g_io_channel_get_flags ();
+ IOFlags flags = g_io_channel_get_flags (handle);
return (flags & IOFlags.Seekable) == IOFlags.Seekable;
#else
@@ -79,7 +79,7 @@ namespace FSpot {
public override bool CanWrite {
get {
- IOFlags flags = g_io_channel_get_flags ();
+ IOFlags flags = g_io_channel_get_flags (handle);
return (flags & IOFlags.Writable) == IOFlags.Writable;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]