2002-10-08 Kristian Rietveld <kris@gtk.org>
(So Miguel told me just to go ahead and commit -kris) * gtk/TreeSelection.custom: new file, defines a working GetSelected method (GetSelected is a bit tricky function). * generator/InterfaceGen.cs (Generate): also call AppendCustom * sources/Gtk.metadata: hide the autogenerated Gtk.TreeSelection.GetSelected method. svn path=/trunk/gtk-sharp/; revision=8071
This commit is contained in:
parent
71bfd023be
commit
27862c71c3
4 changed files with 40 additions and 5 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
2002-10-08 Kristian Rietveld <kris@gtk.org>
|
||||||
|
|
||||||
|
(So Miguel told me just to go ahead and commit -kris)
|
||||||
|
|
||||||
|
* gtk/TreeSelection.custom: new file, defines a working
|
||||||
|
GetSelected method (GetSelected is a bit tricky function).
|
||||||
|
|
||||||
|
* generator/InterfaceGen.cs (Generate): also call AppendCustom
|
||||||
|
|
||||||
|
* sources/Gtk.metadata: hide the autogenerated
|
||||||
|
Gtk.TreeSelection.GetSelected method.
|
||||||
|
|
||||||
2002-10-08 Miguel de Icaza <miguel@ximian.com>
|
2002-10-08 Miguel de Icaza <miguel@ximian.com>
|
||||||
|
|
||||||
* gdk/Point.custom: Use (x,y) instead.
|
* gdk/Point.custom: Use (x,y) instead.
|
||||||
|
|
|
@ -44,6 +44,8 @@ namespace GtkSharp.Generation {
|
||||||
method.GenerateDecl (sw);
|
method.GenerateDecl (sw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AppendCustom (sw);
|
||||||
|
|
||||||
sw.WriteLine ("\t}");
|
sw.WriteLine ("\t}");
|
||||||
CloseWriter (sw);
|
CloseWriter (sw);
|
||||||
Statistics.IFaceCount++;
|
Statistics.IFaceCount++;
|
||||||
|
|
22
gtk/TreeSelection.custom
Normal file
22
gtk/TreeSelection.custom
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
// Gtk.TreeSelection.Custom - Gtk TreeSelection calss customizations
|
||||||
|
//
|
||||||
|
// Author: Kristian Rietveld <kris@gtk.org>
|
||||||
|
//
|
||||||
|
// (c) 2002 Kristian Rietveld
|
||||||
|
//
|
||||||
|
// This code is inserted after the automatically generated code.
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary> GetSelected Method </summary>
|
||||||
|
/// <remarks> To be completed </remarks>
|
||||||
|
|
||||||
|
[DllImport("gtk-x11-2.0")]
|
||||||
|
static extern bool gtk_tree_selection_get_selected(IntPtr raw, out IntPtr model, ref Gtk.TreeIter iter);
|
||||||
|
|
||||||
|
public bool GetSelected(out Gtk.TreeModel model, ref Gtk.TreeIter iter) {
|
||||||
|
IntPtr handle = (IntPtr) 0;
|
||||||
|
bool raw_ret = gtk_tree_selection_get_selected(Handle, out handle, ref iter);
|
||||||
|
bool ret = raw_ret;
|
||||||
|
model = (Gtk.TreeModel)GLib.Object.GetObject (handle);
|
||||||
|
return ret;
|
||||||
|
}
|
|
@ -106,11 +106,10 @@
|
||||||
<method>GetSelected</method>
|
<method>GetSelected</method>
|
||||||
</class>
|
</class>
|
||||||
<data>
|
<data>
|
||||||
<attribute target="param">
|
<attribute target="method">
|
||||||
<filter level="name">iter</filter>
|
<name>hidden</name>
|
||||||
<name>pass_as</name>
|
<value>1</value>
|
||||||
<value>out</value>
|
</attribute>
|
||||||
</attribute>
|
|
||||||
</data>
|
</data>
|
||||||
</rule>
|
</rule>
|
||||||
<rule>
|
<rule>
|
||||||
|
|
Loading…
Reference in a new issue