Re: TreeModel selected row number

2005-03-22 Thread John Taber
On Tuesday 22 March 2005 03:41, Murray Cumming wrote: Yes, I think it's that difficult. But the row number should not be useful anyway, because the TreeModel is iterator based. It's the same as wanting to get the numerical index of a std::list. It is actually very useful if the tree is being

Re: TreeModel width

2005-03-22 Thread John Taber
On Tuesday 22 March 2005 03:43, Murray Cumming wrote: Gtk::Widget::set_default_width() might do it, on the TreeView or the thks - I don't see that function listed under Widget in the api documentation - should I be looking somewhere else or is it just missing? John

Re: TreeModel selected row number

2005-03-22 Thread Murray Cumming
On Tue, 2005-03-22 at 18:43 +0100, Murray Cumming wrote: currently I think this would have to be done: std::string color = row[menuColums.color] if (color == blue) {...} //if I want to key to somethingelse have to find index of blue An id column will do the same, I think. I also

Re: extend Drawing Area class

2005-03-22 Thread Murray Cumming
On Tue, 2005-03-22 at 13:15 -0500, Jeff Simpson wrote: (also posted to glade-users): I'm hoping somebody can point me in the right direction for a project I'm working on. Basically, I need to add a few extra functions to the DrawingArea object, and I'd like to use Glade / gtkmm as much as

TreeView Signal Problem

2005-03-22 Thread John Taber
Not my day with TreeView:) The TreeView signals do not appear to be sent - the text output does not appear when I click on any of the tree rows. All my button signals work fine. I tried to follow the tree example - any ideas? virtual void menuTreeOnClicked(const Gtk::TreeModel::Path path,