Mercurial > geeqie
comparison src/bar_histogram.c @ 1314:8cca18bce950
simplified config writing
author | nadvornik |
---|---|
date | Mon, 23 Feb 2009 22:13:09 +0000 |
parents | 55ea4962887a |
children | c1d108ab3388 |
comparison
equal
deleted
inserted
replaced
1313:1ffa5222dc61 | 1314:8cca18bce950 |
---|---|
82 PaneHistogramData *phd; | 82 PaneHistogramData *phd; |
83 | 83 |
84 phd = g_object_get_data(G_OBJECT(pane), "pane_data"); | 84 phd = g_object_get_data(G_OBJECT(pane), "pane_data"); |
85 if (!phd) return; | 85 if (!phd) return; |
86 | 86 |
87 write_indent(outstr, indent); | 87 WRITE_STRING("<pane_histogram\n"); |
88 g_string_append_printf(outstr, "<pane_histogram\n"); | |
89 indent++; | 88 indent++; |
90 WRITE_CHAR(*phd, pane.title); | 89 WRITE_CHAR(*phd, pane.title); |
91 WRITE_BOOL(*phd, pane.expanded); | 90 WRITE_BOOL(*phd, pane.expanded); |
92 indent--; | 91 indent--; |
93 write_indent(outstr, indent); | 92 WRITE_STRING("/>\n"); |
94 g_string_append_printf(outstr, "/>\n"); | |
95 } | 93 } |
96 | 94 |
97 | 95 |
98 static void bar_pane_histogram_notify_cb(FileData *fd, NotifyType type, gpointer data) | 96 static void bar_pane_histogram_notify_cb(FileData *fd, NotifyType type, gpointer data) |
99 { | 97 { |