mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-08 07:53:17 +02:00
2007-10-01 Mike Kestner <mkestner@novell.com>
* gtk/TreePath.custom: use Marshal.Copy to copy indices array. svn path=/trunk/gtk-sharp/; revision=86731
This commit is contained in:
parent
70bd5d56e9
commit
2b3aaeb652
@ -1,4 +1,8 @@
|
|||||||
2007-09-21 Mike Kestner <mkestner@novell.com>
|
2007-10-01 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* gtk/TreePath.custom: use Marshal.Copy to copy indices array.
|
||||||
|
|
||||||
|
2007-10-01 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* glib/Object.cs: add ctor (), which invokes CreateNativeObject
|
* glib/Object.cs: add ctor (), which invokes CreateNativeObject
|
||||||
to allow direct subclasses that do all the registration automatically.
|
to allow direct subclasses that do all the registration automatically.
|
||||||
|
@ -21,10 +21,7 @@
|
|||||||
get {
|
get {
|
||||||
IntPtr ptr = gtk_tree_path_get_indices(Handle);
|
IntPtr ptr = gtk_tree_path_get_indices(Handle);
|
||||||
int [] arr = new int [Depth];
|
int [] arr = new int [Depth];
|
||||||
int isize = Marshal.SizeOf (typeof (int));
|
Marshal.Copy (ptr, arr, 0, Depth);
|
||||||
|
|
||||||
for (int i = 0; i < arr.Length; i++)
|
|
||||||
arr [i] = Marshal.ReadInt32 ( ptr, i * isize);
|
|
||||||
return arr;
|
return arr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user