RE: gtk_tree_model_iter_previous()



> On Wed, 2004-01-21 at 13:44, Murray Cumming Comneon com wrote:
> > As mentioned here: http://bugzilla.gnome.org/show_bug.cgi?id=128058
> > 
> > It would be nice to have a gtk_tree_model_iter_previous() 
> as well as 
> > the current gtk_tree_model_iter_next(). Totem has an 
> implementation, 
> > though I guess it's significantly slower than 
> > gtk_tree_model_iter_next(): 
> > http://cvs.gnome.org/lxr/source/totem/src/totem-playlist.c#146
> > 
> > Thoughts?
> 
> <public service announcement>
> If we add one, Totem will get what it deserves... people - if 
> you write utility functions, *DO NOT PUT THEM IN THE GTK+ 
> NAMESPACE </public service announcement>

I think that's not in any .h file, so it's not _so_ bad.
 
> I've written that function before, and think it would be 
> useful to have in GTK+. Would need a warning in the docs 
> about performance. We could potentially add a vtable member 
> to GtkTreeModel in the 
> future to allow models to accelerate it when possible with 
> the model's data structures.
> 
> I've discussed this with Jonathan before, forget what his 
> response was.
> 
> But post-2.4.

OK. Thanks. I'll prepare a patch sometime. And I might add it to gtkmm even
before it's in GTK+.

Murray Cumming
www.murrayc.com
murrayc usa net



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