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'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.

Regards,
					Owen





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