Re: [evolution-patches] Ask user to make evolution default mail app bug #127526 (Mail)



On Thu, 2004-08-19 at 22:07, Not Zed wrote:
[snip]
> > > I would just use gconf_client_get_bool.  Let the schema provide the 
> > > default; this also lets administrators override the default.
> > >
> > 
> > Using gconf_client_get_bool isn't such a good idea, because it returns 
> > FALSE if the key is unset (atleast I think it does). And it will be 
> > unset the first time we launch evolution, so we got no idea if we should 
> > show the dialog or not.
> If you get false, just don't show it.  The default wont be false
> unless something has gone awry with the install, the default comes
> from the schema.

also, if you really care about whether or not the value is really FALSE
or not, you can check the GError for errors. if set, then the FALSE is
because the value didn't exist.

but like notzed said, the schema holds the default value.

Jeff





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