diff --git a/ChangeLog b/ChangeLog index 0ca6b418a..4d3263747 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-01 Mike Kestner + + * gtk/Gtk.metadata: automarshal TreeSelection.GetSelectedRows. + * gtk/TreeSelection.custom: kill GetSelectedRows customization. + [Fixes #450689] + 2008-12-01 Mike Kestner * gtk/Gtk.metadata: automarshal TreeView.Columns. diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index 6b888d069..a82298298 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -683,7 +683,10 @@ true true out - 1 + GtkTreePath* + true + true + out call 1 1 diff --git a/gtk/TreeSelection.custom b/gtk/TreeSelection.custom index ea6377730..a918aeae2 100644 --- a/gtk/TreeSelection.custom +++ b/gtk/TreeSelection.custom @@ -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) {