config daemon/library for 4.6
    Brian J. Tarricone 
    bjt23 at cornell.edu
       
    Tue Sep  4 14:28:35 CEST 2007
    
    
  
On Tue, 4 Sep 2007 14:00:11 +0200 Jens Luedicke wrote:
> On 9/4/07, Brian J. Tarricone <bjt23 at cornell.edu> wrote:
> > 3.  Would the model used for XfceRc work better?  XfceRc doesn't
> > have a true/false return, but instead has an extra 'fallback'
> > parameter which gets returned instead if the value isn't in the
> > config file.  This works well in situations where you want to have
> > a default value if one isn't set yet, without having a bunch of
> > if/else trees.
> 
> void xfconf_channel_get_int(XfconfChannel *channel,
>                                const gchar *property,
>                                gint *value, gint default);
> 
> OR:
> 
> gint xfconf_channel_get_int(XfconfChannel *channel,
>                                const gchar *property, gint default);
> 
> if there is no property with that name, default is returned
> like this?
Yeah, the latter thing was what I was thinking of.
Is it useful to be able to know if a property exists or not?
	-brian
    
    
More information about the Xfce4-dev
mailing list