/*! \brief Load a user configuration file. * \par Function Description * Attempts to load the user configuration file with basename \a * rcname. If \a rcname is NULL, the default value of "gafrc" is * used. * * \param toplevel The current #TOPLEVEL structure. * \param rcfile The basename of the configuration file to load, or NULL. * \param err Return location for errors, or NULL. * \return TRUE on success, FALSE on failure. */ gboolean g_rc_parse_user (TOPLEVEL *toplevel, const gchar *rcname, GError **err) { /* Default to gafrc */ rcname = (rcname != NULL) ? rcname : "gafrc"; return g_rc_parse_local (toplevel, rcname, s_path_user_config (), err); }
/*! \todo Finish function documentation!!! * \brief * \par Function Description * */ void g_rc_parse_gtkrc() { gchar *filename; filename = g_build_filename (s_path_sys_config (), "gschem-gtkrc", NULL); gtk_rc_parse (filename); g_free (filename); filename = g_build_filename (s_path_user_config (), "gschem-gtkrc", NULL); gtk_rc_parse (filename); g_free (filename); }