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:
parent
c37cd06fc5
commit
38f2b2a114
2 changed files with 9 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue