write newline after serializing the properties.

2002-05-24  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc.c (gimp_rc_serialize): write newline after
	serializing the properties.

	* app/config/gimpconfig.c (gimp_config_string_indent): tiny
	optimization.
This commit is contained in:
Sven Neumann 2002-05-24 13:52:07 +00:00 committed by Sven Neumann
parent f08744ed95
commit b5d2dd0867
4 changed files with 21 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2002-05-24 Sven Neumann <sven@gimp.org>
* app/config/gimprc.c (gimp_rc_serialize): write newline after
serializing the properties.
* app/config/gimpconfig.c (gimp_config_string_indent): tiny
optimization.
2002-05-24 Maurits Rijk <lpeek.mrijk@consunet.nl>
* plug-ins/common/iwarp.c (iwarp_dialog): fix for #82494 (strange

View File

@ -339,13 +339,13 @@ void
gimp_config_string_indent (GString *string,
gint indent_level)
{
gint indent;
gint i;
g_return_if_fail (string != NULL);
g_return_if_fail (indent_level >= 0);
for (indent = 0; indent < indent_level; indent++)
g_string_append (string, " ");
for (i = 0; i < indent_level; i++)
g_string_append_len (string, " ", 4);
}
static void

View File

@ -21,6 +21,10 @@
#include "config.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <glib-object.h>
#include "libgimpbase/gimpbase.h"
@ -113,6 +117,9 @@ gimp_rc_serialize (GObject *object,
else
success = gimp_config_serialize_properties (object, fd, indent_level);
if (success)
success = (write (fd, "\n", 1) != -1);
if (success)
success = gimp_config_serialize_unknown_tokens (object, fd, indent_level);

View File

@ -339,13 +339,13 @@ void
gimp_config_string_indent (GString *string,
gint indent_level)
{
gint indent;
gint i;
g_return_if_fail (string != NULL);
g_return_if_fail (indent_level >= 0);
for (indent = 0; indent < indent_level; indent++)
g_string_append (string, " ");
for (i = 0; i < indent_level; i++)
g_string_append_len (string, " ", 4);
}
static void