Re: gtktreeview.c



Hi,

Havoc Pennington <hp redhat com> writes:

> "Padraig O'Briain" <Padraig Obriain Sun COM> writes:  
> > -  for (list = tree_view->priv->columns; list; list = list->data)
> > +  for (list = tree_view->priv->columns; list; list = list->next)
> 
> Ah, the old "list = list->data" trick. I fixed one of those in my code
> the other day. ;-) Gotta love typesafety!

another good reason for using list = g_list_next (list) instead.


Salut, Sven



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