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
3 changed files with 10 additions and 16 deletions
|
@ -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>
|
||||
|
||||
* 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='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='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='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>
|
||||
|
|
|
@ -32,21 +32,6 @@
|
|||
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.")]
|
||||
public void SetSelectFunction (Gtk.TreeSelectionFunc func, IntPtr data, Gtk.DestroyNotify destroy)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue