Re: [gtkmm] TreeView.set_cursor weirdness



Hello Murray,
	I tried what you suggested before but got errors due to  the TreeIter
interface being private.

Using:
const Gtk::TreeModel::Path path =
	model->get_path(row);

where model is a TreeModel
and row is a Gtk::TreeRow row created with model->append()

I get an error:
 fields of `Gtk::TreeIter' are inaccessible in 
`Gtk::TreeRow' due to private inheritance

I am using gtkmm 1.3.18

Steve

On Wed, 2002-07-31 at 12:41, Murray Cumming wrote:
> On Wed, 2002-07-31 at 17:11, Steve Przepiora wrote:
> > I figured out why it wasn't working, I had an incorrect Path (the path
> > string is a 0 based array) however I still am wondering if there is an
> > easier way to get a Path from a Row?
> 
> Gtk::TreeModel::get_path(). It takes an iterator, but it will also take
> a Row. See my other message about the overrides.
> 
> -- 
> Murray Cumming
> murrayc usa net
> www.murrayc.com
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]