That works like a charm, I'd overlooked that method, much appreciated. It might be helpful to add a bit of documentation in that method as well as maybe in the set_tooltip_row() to point users towards set_tooltip_column(). I'd be happy to come up with that, and there are some other documentation oriented things I would like to contribute as well.
What's the best way to go about that? I grabbed the source out of SVN trunk, should I just make a patch and submit to bugzilla? Is it more effort for the maintainers than it is worth if I start stomping around documenting things? I'd hate to be a nuisance :-) Thanks, - John Hobbs On Tue, Aug 5, 2008 at 4:21 AM, Murray Cumming <[EMAIL PROTECTED]> wrote: > On Mon, 2008-08-04 at 17:34 -0500, John Hobbs wrote: >> Hello, >> >> I'm trying to set tooltips by row in a tree view, but I'm a tad stuck. >> >> Looking at the documentation I see I need a Gtk::TreeModel::Path, >> which I am currently getting from a Gtk::TreeModel::iterator, which I >> get in turn from calling append() on a Gtk::ListStore :-) > > You can get a TreeModel::Path from a TreeModel::iterator by using the > Path(iterator) constructor. > >> What I also apparently need is a RefPtr to a Gtk::ToolTip, here is the >> call from the documentation [1]. >> >> void Gtk::TreeView::set_tooltip_row ( const Glib::RefPtr<Tooltip>& >> tooltip, const TreePath& path ); > > I am also not sure how this should be used. > > I think it will be easier to just add a text column in the model for the > tooltip text, and then use set_tooltip_column(). > >> My question is, where do I get a RefPtr to a Gtk::Tooltip? There isn't >> a static "create()" method in Gtk::Tooltip like I am accustomed to. >> Anyone see what am I missing here? >> >> Thanks for your help in advance :-) > > -- > [EMAIL PROTECTED] > www.murrayc.com > www.openismus.com > > _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
