Re: Setting list values



In <y5wwuoydwvq fsf icon devel redhat com>, Havoc Pennington wrote:

> Tony Houghton <gnome realh co uk> writes:
> > 
> > Thanks, I had a look at your source and worked out what my problem was.
> > I was building a list of GConfValue structs and passing that to
> > gconf_value_set_list, but what you're obviously supposed to do is pass a
> > list of the values themselves (ie plain ints, strings etc).
> > 
> > I think the documentation is wrong. At
> > <http://developer.gnome.org/doc/API/gconf/gconf-gconf-value.html#GCONF-VALUE-SET-LIST>
> > it says:
> > 
> > : The list argument should be a GSList of GConfValue. Each GConfValue in
> > : the list must have the same type, and this type must be specified in
> > : advance with gconf_value_set_list_type().
> > 
> > I read that as unambiguous instruction to use a list of GConfValue, not
> > of string or int.
> > 
> 
> gconf_value_set_list() _does_ take a list of GConfValue as far as I
> know. But you are using gconf_client_set_list().

Oh yes, sorry. What happened was that I looked up
gconf_client_set_list() and found it wasn't really documented at all, so
I looked up gconf_value_set_list() and assumed it would be similar.

-- 
TH * http://www.realh.co.uk



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