Mercurial > geeqie
diff src/filefilter.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/filefilter.c Mon Feb 23 21:21:15 2009 +0000 +++ b/src/filefilter.c Mon Feb 23 22:13:09 2009 +0000 @@ -425,8 +425,7 @@ { GList *work; - write_indent(outstr, indent); - g_string_append_printf(outstr, "<filter>\n"); + WRITE_STRING("<filter>\n"); indent++; work = filter_list; @@ -435,8 +434,7 @@ FilterEntry *fe = work->data; work = work->next; - write_indent(outstr, indent); - g_string_append_printf(outstr, "<file_type\n"); + WRITE_STRING("<file_type\n"); indent++; WRITE_CHAR(*fe, key); WRITE_BOOL(*fe, enabled); @@ -446,12 +444,10 @@ WRITE_BOOL(*fe, writable); WRITE_BOOL(*fe, allow_sidecar); indent--; - write_indent(outstr, indent); - g_string_append_printf(outstr, "/>\n"); + WRITE_STRING("/>\n"); } indent--; - write_indent(outstr, indent); - g_string_append_printf(outstr, "</filter>\n"); + WRITE_STRING("</filter>\n"); } void filter_load_file_type(const gchar **attribute_names, const gchar **attribute_values)
