2003-10-10 Mike Kestner <mkestner@ximian.com>
* 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
This commit is contained in:
parent
8fd17765c1
commit
55d02e6062
4 changed files with 30 additions and 12 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2003-10-10 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2003-10-10 Mike Kestner <mkestner@ximian.com>
|
2003-10-10 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
* gtk/gtk-api.xml : regenerated
|
* gtk/gtk-api.xml : regenerated
|
||||||
|
|
15
gtk/TreePath.custom
Normal file
15
gtk/TreePath.custom
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
// 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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -11801,7 +11801,7 @@
|
||||||
<method name="GetDepth" cname="gtk_tree_path_get_depth">
|
<method name="GetDepth" cname="gtk_tree_path_get_depth">
|
||||||
<return-type type="gint"/>
|
<return-type type="gint"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="GetIndices" cname="gtk_tree_path_get_indices">
|
<method name="GetIndices" cname="gtk_tree_path_get_indices" hidden="1">
|
||||||
<return-type type="gint*"/>
|
<return-type type="gint*"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="GetType" cname="gtk_tree_path_get_type" shared="true">
|
<method name="GetType" cname="gtk_tree_path_get_type" shared="true">
|
||||||
|
|
|
@ -1711,6 +1711,12 @@
|
||||||
<class name="GtkArrow">
|
<class name="GtkArrow">
|
||||||
<method>Set</method>
|
<method>Set</method>
|
||||||
</class>
|
</class>
|
||||||
|
<class name="GtkIconSet">
|
||||||
|
<method>GetSizes</method>
|
||||||
|
</class>
|
||||||
|
<class name="GtkTreePath">
|
||||||
|
<method>GetIndices</method>
|
||||||
|
</class>
|
||||||
<data>
|
<data>
|
||||||
<attribute target="method">
|
<attribute target="method">
|
||||||
<name>hidden</name>
|
<name>hidden</name>
|
||||||
|
@ -1718,17 +1724,7 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
</data>
|
</data>
|
||||||
</rule>
|
</rule>
|
||||||
<rule>
|
|
||||||
<class name="GtkIconSet">
|
|
||||||
<method>GetSizes</method>
|
|
||||||
</class>
|
|
||||||
<data>
|
|
||||||
<attribute target="method">
|
|
||||||
<name>hidden</name>
|
|
||||||
<value>1</value>
|
|
||||||
</attribute>
|
|
||||||
</data>
|
|
||||||
</rule>
|
|
||||||
<!-- Supress private API bits -->
|
<!-- Supress private API bits -->
|
||||||
<rule>
|
<rule>
|
||||||
<class name="GtkBorder"/>
|
<class name="GtkBorder"/>
|
||||||
|
|
Loading…
Reference in a new issue