Re: is a value writeable?



Dan Winship <danw@helixcode.com> writes: 
> That seems broken to me. I would expect that if you called that
> function in that situation, that it would set the value of
> /gnome/desktop/backdrop in /home/colm/.gconf.
>

Yes, but then the value get() returns would not be modified, and your
application should not change the setting that's currently in effect. 
So setting it doesn't do you any good at all. Why do you want to set
it in that case?
 
> If that's not the way that it works, then every single call to
> gconf_set_* in every program is going to need jump through hoops to
> deal with this possibility.
> 

Well we are moving the hoop to checking whether the value is
overridden before you try to set the value. But I don't see any way to
avoid some kind of hoop, if administrators can override settings.

If you ignore errors (pass NULL, or do the default GConfClient thing
and display them all) you don't need to jump through any hoops, though
your app will be mildly broken.

Havoc






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