Commit 53a6199c authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

use gimp->config; edit_config is just for the prefs dialog. This should

2004-01-06  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/gimprc.pdb: use gimp->config; edit_config is
	just for the prefs dialog. This should fix gimp_gimprc_set().

	* app/pdb/gimprc_cmds.c: regenerated.
parent 4667eac9
2004-01-06 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/gimprc.pdb: use gimp->config; edit_config is
just for the prefs dialog. This should fix gimp_gimprc_set().
* app/pdb/gimprc_cmds.c: regenerated.
2004-01-06 Sven Neumann <sven@gimp.org>
 
* plug-ins/common/png.c: use a global parasite to store the default
......@@ -70,10 +70,7 @@ gimprc_query_invoker (Gimp *gimp,
if (success)
{
/* use edit_config so we get the values back we have set using
* gimprc_set() before
*/
success = (value = gimp_rc_query (GIMP_RC (gimp->edit_config), token)) != NULL;
success = (value = gimp_rc_query (GIMP_RC (gimp->config), token)) != NULL;
}
return_args = procedural_db_return_args (&gimprc_query_proc, success);
......@@ -136,11 +133,7 @@ gimprc_set_invoker (Gimp *gimp,
if (success)
{
/* set the value in edit_config so we don't accidentially set
* GIMP_PARAM_RESTART values via the PDB
*/
gimp_config_add_unknown_token (GIMP_CONFIG (gimp->edit_config),
token, value);
gimp_config_add_unknown_token (GIMP_CONFIG (gimp->config), token, value);
success = TRUE;
}
......
......@@ -56,10 +56,7 @@ HELP
vars => [ 'gchar *value = NULL' ],
code => <<'CODE'
{
/* use edit_config so we get the values back we have set using
* gimprc_set() before
*/
success = (value = gimp_rc_query (GIMP_RC (gimp->edit_config), token)) != NULL;
success = (value = gimp_rc_query (GIMP_RC (gimp->config), token)) != NULL;
}
CODE
);
......@@ -90,11 +87,7 @@ HELP
headers => [ qw("config/gimpconfig.h") ],
code => <<'CODE'
{
/* set the value in edit_config so we don't accidentially set
* GIMP_PARAM_RESTART values via the PDB
*/
gimp_config_add_unknown_token (GIMP_CONFIG (gimp->edit_config),
token, value);
gimp_config_add_unknown_token (GIMP_CONFIG (gimp->config), token, value);
success = TRUE;
}
CODE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment