GConf default values
- From: Arne Caspari <arnem informatik uni-bremen de>
- To: Gtk App Devel List <gtk-app-devel-list gnome org>
- Subject: GConf default values
- Date: Sun, 01 Feb 2004 21:53:35 +0100
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]