mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
2009-05-13 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* glib/ValueArray.cs: use type specific PtrToStructure marshaling to avoid ArgumentExceptions. [Fixes #503467] svn path=/trunk/gtk-sharp/; revision=134074
This commit is contained in:
parent
a979e2211b
commit
95c418fe40
@ -1,3 +1,8 @@
|
|||||||
|
2009-05-13 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
|
* glib/ValueArray.cs: use type specific PtrToStructure marshaling to
|
||||||
|
avoid ArgumentExceptions. [Fixes #503467]
|
||||||
|
|
||||||
2009-05-13 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
2009-05-13 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
* glib/Value.cs: Add support for ValueArrays inside GLib.Values.
|
* glib/Value.cs: Add support for ValueArrays inside GLib.Values.
|
||||||
|
@ -157,9 +157,8 @@ namespace GLib {
|
|||||||
|
|
||||||
public object this [int index] {
|
public object this [int index] {
|
||||||
get {
|
get {
|
||||||
GLib.Value val = Value.Empty;
|
IntPtr raw_val = g_value_array_get_nth (Handle, (uint) index);
|
||||||
Marshal.PtrToStructure (g_value_array_get_nth (Handle, (uint) index), val);
|
return Marshal.PtrToStructure (raw_val, typeof (GLib.Value));
|
||||||
return val;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user