-
-
Save Therzok/709f0e6088b6e0af5bc03a833c184b00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gtk/TreeSelection.custom b/gtk/TreeSelection.custom | |
index 41efc47..61062cd 100644 | |
--- a/gtk/TreeSelection.custom | |
+++ b/gtk/TreeSelection.custom | |
@@ -22,9 +22,6 @@ | |
[DllImport("libgtk-win32-2.0-0.dll", CallingConvention=CallingConvention.Cdecl)] | |
static extern IntPtr gtk_tree_selection_get_selected_rows (IntPtr raw, IntPtr model); | |
- [DllImport("libgtk-win32-2.0-0.dll", CallingConvention=CallingConvention.Cdecl)] | |
- static extern void gtk_tree_path_free (IntPtr raw); | |
- | |
public TreePath[] GetSelectedRows () | |
{ | |
IntPtr list_ptr = gtk_tree_selection_get_selected_rows (Handle, IntPtr.Zero); | |
diff --git a/gtk/generated/IconView.cs b/gtk/generated/IconView.cs | |
index d7d8c1d..81062cb 100644 | |
--- a/gtk/generated/IconView.cs | |
+++ b/gtk/generated/IconView.cs | |
@@ -704,10 +704,12 @@ namespace Gtk { | |
[DllImport("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] | |
static extern IntPtr gtk_icon_view_get_selected_items(IntPtr raw); | |
+ [DllImport("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] | |
+ static extern void gtk_tree_path_free(IntPtr raw); | |
public Gtk.TreePath[] SelectedItems { | |
get { | |
IntPtr raw_ret = gtk_icon_view_get_selected_items(Handle); | |
- Gtk.TreePath[] ret = GLib.Marshaller.ListPtrToArray<Gtk.TreePath> (raw_ret, typeof(GLib.List), true, true); | |
+ Gtk.TreePath[] ret = GLib.Marshaller.ListPtrToArray<Gtk.TreePath> (raw_ret, typeof(GLib.List), true, true, gtk_tree_path_free); | |
return ret; | |
} | |
} | |
diff --git a/gtk/generated/TreeSelection.cs b/gtk/generated/TreeSelection.cs | |
index e44c2d6..572e028 100644 | |
--- a/gtk/generated/TreeSelection.cs | |
+++ b/gtk/generated/TreeSelection.cs | |
@@ -124,10 +124,12 @@ namespace Gtk { | |
[DllImport("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] | |
static extern IntPtr gtk_tree_selection_get_selected_rows(IntPtr raw, out IntPtr model); | |
+ [DllImport("libgtk-win32-2.0-0.dll", CallingConvention = CallingConvention.Cdecl)] | |
+ static extern void gtk_tree_path_free(IntPtr raw); | |
public Gtk.TreePath[] GetSelectedRows(out Gtk.TreeModel model) { | |
IntPtr native_model; | |
IntPtr raw_ret = gtk_tree_selection_get_selected_rows(Handle, out native_model); | |
- Gtk.TreePath[] ret = GLib.Marshaller.ListPtrToArray<Gtk.TreePath> (raw_ret, typeof(GLib.List), true, true); | |
+ Gtk.TreePath[] ret = GLib.Marshaller.ListPtrToArray<Gtk.TreePath> (raw_ret, typeof(GLib.List), true, true, gtk_tree_path_free); | |
model = Gtk.TreeModelAdapter.GetObject (native_model, false); | |
return ret; | |
} | |
@@ -283,9 +285,6 @@ namespace Gtk { | |
[DllImport("libgtk-win32-2.0-0.dll", CallingConvention=CallingConvention.Cdecl)] | |
static extern IntPtr gtk_tree_selection_get_selected_rows (IntPtr raw, IntPtr model); | |
- [DllImport("libgtk-win32-2.0-0.dll", CallingConvention=CallingConvention.Cdecl)] | |
- static extern void gtk_tree_path_free (IntPtr raw); | |
- | |
public TreePath[] GetSelectedRows () | |
{ | |
IntPtr list_ptr = gtk_tree_selection_get_selected_rows (Handle, IntPtr.Zero); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment