mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 04:05:28 +00:00
27862c71c3
(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
23 lines
923 B
Plaintext
23 lines
923 B
Plaintext
// 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;
|
|
}
|