if (!scolor)
scolor = strdup(DEFAULT_GRAPH_BACKGROUND_COLOR);
- gconf_client_set_string(client,
- KEY_GRAPH_BACKGROUND_COLOR, scolor, NULL);
+ set_string(KEY_GRAPH_BACKGROUND_COLOR, scolor);
free(scolor);
}
if (!str)
str = strdup(DEFAULT_GRAPH_FOREGROUND_COLOR);
- gconf_client_set_string(client, KEY_GRAPH_FOREGROUND_COLOR, str, NULL);
+ set_string(KEY_GRAPH_FOREGROUND_COLOR, str);
free(str);
}
&err);
if (!ret) {
- if (err->code == G_KEY_FILE_ERROR_NOT_FOUND) {
+ if (err->code == G_KEY_FILE_ERROR_NOT_FOUND)
log_fct(_("The configuration file "
"does not exist."));
- } else {
+ else
log_err(_("Failed to parse configuration "
"file: %s"),
path);
- }
}
}