Re: GtkTreeView



On 14 Aug 2001, Jonathan Blandford wrote:

> Tim Janik <timj gtk org> writes:
> 
> > On 13 Aug 2001, David Bryant wrote:
> > 
> > > > Easier:
> > > > 
> > > >  gpointer data;
> > > >  gtk_tree_model_get (model, iter, 2, &data, NULL);
> > > > 
> > > > Regards,
> > > >                                         Owen
> > > 
> > > That's neater, but if you don't want it to crash you'll do this:
> > > gtk_tree_model_get(model, iter, 2, &data, -1);
> > > 
> > > It feels very unnatural finish an arg list with -1...But then
> > > again arg lists feel altogether unnatural to C++ programmers :^)
> > 
> > hm, jonathan, was there actually any pressing need to not let
> > column numbering start out at 1?
> 
> Beyond the fact we're writing our code in C and not pascal?

well, we're using >0 for quite a couple of id types, GQuark,
source/handler/signal ids, though those are not as index-alike...
it would just have been nice to preserve the 0-termination for
varargs, and it would have made tree paths nicer - i guess. ;)

> 
> -Jonathan
> 

---
ciaoTJ





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