diff src/layout.c @ 1314:8cca18bce950

simplified config writing
author nadvornik
date Mon, 23 Feb 2009 22:13:09 +0000
parents 1ffa5222dc61
children c1d108ab3388
line wrap: on
line diff
--- a/src/layout.c	Mon Feb 23 21:21:15 2009 +0000
+++ b/src/layout.c	Mon Feb 23 22:13:09 2009 +0000
@@ -2174,16 +2174,13 @@
 void layout_write_config(LayoutWindow *lw, GString *outstr, gint indent)
 {
 	layout_sync_options_with_current_state(lw);
-	write_indent(outstr, indent);
-	g_string_append_printf(outstr, "<layout\n");
+	WRITE_STRING("<layout\n");
 	layout_write_attributes(&lw->options, outstr, indent + 1);
-	write_indent(outstr, indent);
-	g_string_append_printf(outstr, ">\n");
+	WRITE_STRING(">\n");
 
 	bar_write_config(lw->bar, outstr, indent + 1);
 	
-	write_indent(outstr, indent);
-	g_string_append_printf(outstr, "</layout>\n");
+	WRITE_STRING("</layout>\n");
 }
 
 void layout_load_attributes(LayoutOptions *layout, const gchar **attribute_names, const gchar **attribute_values)