2005-12-12 Mike Kestner <mkestner@novell.com>

* gdk/EventClient.cs : fix native long marshaling issue. Thanks to 
	 ed@catmur.co.uk for the bug report and investigation.
	[Fixes #76740]

svn path=/trunk/gtk-sharp/; revision=54244
This commit is contained in:
Mike Kestner 2005-12-12 16:08:26 +00:00
parent c37cd06fc5
commit 38f2b2a114
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-12-12 Mike Kestner <mkestner@novell.com>
* gdk/EventClient.cs : fix native long marshaling issue. Thanks to
ed@catmur.co.uk for the bug report and investigation.
[Fixes #76740]
2005-12-12 Itamar Rogel <chastamar@yahoo.com>
* NodeView.cs : add default ctor and NodeStore setter.

View File

@ -61,8 +61,10 @@ namespace Gdk {
Marshal.Copy (s, 0, gtksharp_gdk_event_client_get_data (Handle), 10);
return s;
case 32:
IntPtr data_ptr = gtksharp_gdk_event_client_get_data (Handle);
long[] l = new long [5];
Marshal.Copy (l, 0, gtksharp_gdk_event_client_get_data (Handle), 5);
for (int i = 0; i < 5; i++)
l [i] = (long) Marshal.ReadIntPtr (data_ptr, i);
return l;
default:
throw new Exception ("Invalid Data Format: " + DataFormat);