/** * gimp_rc_new: * @system_gimprc: the name of the system-wide gimprc file or %NULL to * use the standard location * @user_gimprc: the name of the user gimprc file or %NULL to use the * standard location * @verbose: enable console messages about loading and saving * * Creates a new GimpRc object and loads the system-wide and the user * configuration files. * * Returns: the new #GimpRc. */ GimpRc * gimp_rc_new (const gchar *system_gimprc, const gchar *user_gimprc, gboolean verbose) { GimpRc *rc = g_object_new (GIMP_TYPE_RC, "verbose", verbose, "system-gimprc", system_gimprc, "user-gimprc", user_gimprc, NULL); gimp_rc_load (rc); return rc; }
/** * gimp_rc_new: * @system_gimprc: the name of the system-wide gimprc file or %NULL to * use the standard location * @user_gimprc: the name of the user gimprc file or %NULL to use the * standard location * @verbose: enable console messages about loading and saving * * Creates a new GimpRc object and loads the system-wide and the user * configuration files. * * Returns: the new #GimpRc. */ GimpRc * gimp_rc_new (GFile *system_gimprc, GFile *user_gimprc, gboolean verbose) { GimpRc *rc; g_return_val_if_fail (system_gimprc == NULL || G_IS_FILE (system_gimprc), NULL); g_return_val_if_fail (user_gimprc == NULL || G_IS_FILE (user_gimprc), NULL); rc = g_object_new (GIMP_TYPE_RC, "verbose", verbose, "system-gimprc", system_gimprc, "user-gimprc", user_gimprc, NULL); gimp_rc_load (rc); return rc; }