[Gtk-sharp-list] Tree selection

Mike Kestner mkestner@speakeasy.net
18 Feb 2003 22:09:06 -0600


On Tue, 2003-02-18 at 21:19, George Farris wrote:
> OK how the heck do I get a selected row of text out of the TreeView
> widget?
> 
> This widget is seriously complex and without good documentation it's
> extremely difficult.  Some of the gtk functions don't even map to the
> gtk# class functions.
> 
> I think who ever created the TreeView was on some bad drugs:-)

Did you consider using the Gtk.TreeView.Selection property?  Any method
in the C API that starts with get_ or set_ has most likely been
converted to a property in the Gtk# API.  

TreeView is an extremely powerful widget. In my experience, one of the
best ways to get help in using a tool is to insult its authors on public
mailing lists, even with smileys tacked on.
> 
> A lot of other stuff I've figured out but if there is one widget that
> could use with a nice straight forward howto it's this thing.

I don't know what shape the Gtk# docs are in for it yet, but you can
always read the C API docs on www.gtk.org.  It's not difficult to
convert the concepts to C#.

-- 
Mike Kestner <mkestner@speakeasy.net>