diff src/bar_comment.c @ 1314:8cca18bce950

simplified config writing
author nadvornik
date Mon, 23 Feb 2009 22:13:09 +0000
parents 55ea4962887a
children c1d108ab3388
line wrap: on
line diff
--- a/src/bar_comment.c	Mon Feb 23 21:21:15 2009 +0000
+++ b/src/bar_comment.c	Mon Feb 23 22:13:09 2009 +0000
@@ -151,16 +151,14 @@
 	pcd = g_object_get_data(G_OBJECT(pane), "pane_data");
 	if (!pcd) return;
 
-	write_indent(outstr, indent);
-	g_string_append_printf(outstr, "<pane_comment\n");
+	WRITE_STRING("<pane_comment\n");
 	indent++;
 	WRITE_CHAR(*pcd, pane.title);
 	WRITE_BOOL(*pcd, pane.expanded);
 	WRITE_CHAR(*pcd, key);
 	WRITE_INT(*pcd, height); 
 	indent--;
-	write_indent(outstr, indent);
-	g_string_append_printf(outstr, "/>\n");
+	WRITE_STRING("/>\n");
 }
 
 static void bar_pane_comment_notify_cb(FileData *fd, NotifyType type, gpointer data)