app/config/gimpconfig.[ch] app/config/gimpconfigwriter.[ch] added support

2003-06-23  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig.[ch]
	* app/config/gimpconfigwriter.[ch]
	* app/config/gimpscanner.[ch]: added support for serializing to
	and deserializing from strings. Had to do some smaller changes to
	the GimpConfig API.

	* app/config/test-config.c: added a simple test for the new
	functions.

	* app/config/gimpconfig-dump.c
	* app/config/gimprc.c
	* app/core/gimp-documents.c
	* app/core/gimp-parasites.c
	* app/core/gimp-templates.c
	* app/core/gimpunits.c
	* app/gui/session.c
	* app/plug-in/plug-in-rc.c
	* app/tools/tool_options.c
	* app/widgets/gimpdevices.c: follow GimpConfig API changes.

	* libgimpbase/gimpparasite.[ch]: declared the return value of
	gimp_parasite_data() as gconstpointer.
This commit is contained in:
Sven Neumann
2003-06-23 22:02:56 +00:00
committed by Sven Neumann
parent dffe80c29a
commit f30586d112
29 changed files with 637 additions and 278 deletions

View File

@ -128,10 +128,10 @@ gimp_devices_restore (Gimp *gimp)
filename = gimp_personal_rc_file ("devicerc");
if (! gimp_config_deserialize (G_OBJECT (manager->device_info_list),
filename,
gimp,
&error))
if (! gimp_config_deserialize_file (G_OBJECT (manager->device_info_list),
filename,
gimp,
&error))
{
if (error->code != GIMP_CONFIG_ERROR_OPEN_ENOENT)
g_message (error->message);
@ -170,12 +170,12 @@ gimp_devices_save (Gimp *gimp)
filename = gimp_personal_rc_file ("devicerc");
if (! gimp_config_serialize (G_OBJECT (manager->device_info_list),
filename,
"GIMP devicerc",
"end of devicerc",
NULL,
&error))
if (! gimp_config_serialize_to_file (G_OBJECT (manager->device_info_list),
filename,
"GIMP devicerc",
"end of devicerc",
NULL,
&error))
{
g_message (error->message);
g_error_free (error);