-
-
Save alanmcgovern/801f18381d51d40051bf 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
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