mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
![Mike Kestner](/assets/img/avatar_default.png)
* gtk/gtk-api.xml : regenerated * gtk/TreePath.custom : implement Indices property by hand. Patch from tds00mahi@thn.htu.se (malte) [Fixes #49254] * sources/Gtk.metadata : hide TreePath.Indices. svn path=/trunk/gtk-sharp/; revision=18867
16 lines
435 B
Plaintext
16 lines
435 B
Plaintext
// Patch submitted by malte on bug #49518
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
static extern IntPtr gtk_tree_path_get_indices(IntPtr raw);
|
|
|
|
public int [] Indices {
|
|
get {
|
|
IntPtr ptr = gtk_tree_path_get_indices(Handle);
|
|
int [] arr = new int [Depth];
|
|
int isize = Marshal.SizeOf (typeof (int));
|
|
|
|
for (int i = 0; i < arr.Length; i++)
|
|
arr [i] = Marshal.ReadInt32 ( ptr, i * isize);
|
|
return arr;
|
|
}
|
|
}
|