Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using GLib;
using System;
public TreePath[] GetSelectedRows ()
IntPtr intPtr = TreeSelection.gtk_tree_selection_get_selected_rows (base.Handle, IntPtr.Zero);
if (intPtr == IntPtr.Zero)
return new TreePath[0];
List list = new List (intPtr, typeof(TreePath));
return (TreePath[])Marshaller.ListToArray (list, typeof(TreePath));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment