GConf default values



Hello!

I have a question on GConf:

Is there a convenient way to set the initial values of the config keys?
The only way I see currently is to do something like the following on application startup:

gconf_client_get_int( client, "somekey", &error );
if( error )
{
gconf_client_set_int( client, "somekey", defaul_value_for_somekey, NULL);
}

for each and every config value used in the application. But this does not seem to be the right way for me.

Btw.: Where are the error codes returned by gconf documented and what error is returned if the function succeeds?

 -Arne



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