mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-23 17:31:16 +00:00
2008-12-01 Mike Kestner <mkestner@novell.com>
* gtk/Gtk.metadata: automarshal TreeSelection.GetSelectedRows. * gtk/TreeSelection.custom: kill GetSelectedRows customization. [Fixes #450689] svn path=/trunk/gtk-sharp/; revision=120458
This commit is contained in:
parent
d6b581ba94
commit
b519876db7
|
@ -1,3 +1,9 @@
|
||||||
|
2008-12-01 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
|
* gtk/Gtk.metadata: automarshal TreeSelection.GetSelectedRows.
|
||||||
|
* gtk/TreeSelection.custom: kill GetSelectedRows customization.
|
||||||
|
[Fixes #450689]
|
||||||
|
|
||||||
2008-12-01 Mike Kestner <mkestner@novell.com>
|
2008-12-01 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* gtk/Gtk.metadata: automarshal TreeView.Columns.
|
* gtk/Gtk.metadata: automarshal TreeView.Columns.
|
||||||
|
|
|
@ -683,7 +683,10 @@
|
||||||
<attr path="/api/namespace/object[@cname='GtkTreeModelSort']/method[@name='ConvertChildPathToPath']/return-type" name="owned">true</attr>
|
<attr path="/api/namespace/object[@cname='GtkTreeModelSort']/method[@name='ConvertChildPathToPath']/return-type" name="owned">true</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkTreeModelSort']/method[@name='ConvertPathToChildPath']/return-type" name="owned">true</attr>
|
<attr path="/api/namespace/object[@cname='GtkTreeModelSort']/method[@name='ConvertPathToChildPath']/return-type" name="owned">true</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='GetSelected']/*/*" name="pass_as">out</attr>
|
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='GetSelected']/*/*" name="pass_as">out</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='GetSelectedRows']" name="hidden">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='GetSelectedRows']/return-type" name="element_type">GtkTreePath*</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='GetSelectedRows']/return-type" name="owned">true</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='GetSelectedRows']/return-type" name="elements_owned">true</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='GetSelectedRows']/*/*[@name='model']" name="pass_as">out</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='SelectedForeach']/*/*[@name='func']" name="scope">call</attr>
|
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='SelectedForeach']/*/*[@name='func']" name="scope">call</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkTreeStore']/constructor[@cname='gtk_tree_store_new']" name="hidden">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkTreeStore']/constructor[@cname='gtk_tree_store_new']" name="hidden">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkTreeStore']/constructor[@cname='gtk_tree_store_newv']" name="hidden">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkTreeStore']/constructor[@cname='gtk_tree_store_newv']" name="hidden">1</attr>
|
||||||
|
|
|
@ -32,21 +32,6 @@
|
||||||
return (TreePath[]) GLib.Marshaller.ListToArray (list, typeof (Gtk.TreePath));
|
return (TreePath[]) GLib.Marshaller.ListToArray (list, typeof (Gtk.TreePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
|
||||||
static extern IntPtr gtk_tree_selection_get_selected_rows (IntPtr raw, out IntPtr model);
|
|
||||||
|
|
||||||
public TreePath[] GetSelectedRows (out TreeModel model)
|
|
||||||
{
|
|
||||||
IntPtr model_handle;
|
|
||||||
IntPtr list_ptr = gtk_tree_selection_get_selected_rows (Handle, out model_handle);
|
|
||||||
model = (Gtk.TreeModel) GLib.Object.GetObject(model_handle);
|
|
||||||
if (list_ptr == IntPtr.Zero)
|
|
||||||
return new TreePath [0];
|
|
||||||
|
|
||||||
GLib.List list = new GLib.List (list_ptr, typeof (Gtk.TreePath));
|
|
||||||
return (TreePath[]) GLib.Marshaller.ListToArray (list, typeof (Gtk.TreePath));
|
|
||||||
}
|
|
||||||
|
|
||||||
[Obsolete ("Replaced by SelectFunction property.")]
|
[Obsolete ("Replaced by SelectFunction property.")]
|
||||||
public void SetSelectFunction (Gtk.TreeSelectionFunc func, IntPtr data, Gtk.DestroyNotify destroy)
|
public void SetSelectFunction (Gtk.TreeSelectionFunc func, IntPtr data, Gtk.DestroyNotify destroy)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue