2002-10-08 19:14:14 +00:00
|
|
|
// 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>
|
|
|
|
|
2003-02-22 04:34:56 +00:00
|
|
|
[DllImport("libgtk-win32-2.0-0.dll")]
|
2002-10-08 19:14:14 +00:00
|
|
|
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;
|
|
|
|
}
|