Skip to content

Instantly share code, notes, and snippets.

@alanmcgovern
Created February 22, 2012 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanmcgovern/801f18381d51d40051bf to your computer and use it in GitHub Desktop.
Save alanmcgovern/801f18381d51d40051bf to your computer and use it in GitHub Desktop.
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