[java-gnome-hackers] Re: [Java-gnome-checkins] CVS: java-gnome/gtk/src/java/org/gnu/gtk TreeSelectio
Brought to you by:
afcowie
From: Mark H. <mh...@ca...> - 2004-02-25 22:12:24
|
Thanks Jeff, this is brilliant! You are doing an amazing job! On Wed, Feb 25, 2004 at 01:40:35PM -0800, Jeffrey S. Morgan wrote: > public TreePath[] getSelectedRows(){ > ! int[] hndls = gtk_tree_selection_get_selected_rows(handle); > ! if (null == hndls) > ! return null; > ! TreePath[] paths = new TreePath[hndls.length]; > ! for (int i = 0; i < hndls.length; i++) { > ! paths[i] = new TreePath(hndls[i]); > ! } > ! return paths; > } -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |