Mercurial > geeqie
comparison src/bar_comment.c @ 1461:e015b6573d36
improved config file formatting
author | nadvornik |
---|---|
date | Thu, 19 Mar 2009 22:12:14 +0000 |
parents | c44f21235ffe |
children | 1b3751ac4743 |
comparison
equal
deleted
inserted
replaced
1460:8178ef34d257 | 1461:e015b6573d36 |
---|---|
148 PaneCommentData *pcd; | 148 PaneCommentData *pcd; |
149 | 149 |
150 pcd = g_object_get_data(G_OBJECT(pane), "pane_data"); | 150 pcd = g_object_get_data(G_OBJECT(pane), "pane_data"); |
151 if (!pcd) return; | 151 if (!pcd) return; |
152 | 152 |
153 WRITE_STRING("<pane_comment\n"); | 153 WRITE_NL(); WRITE_STRING("<pane_comment "); |
154 indent++; | |
155 write_char_option(outstr, indent, "pane.title", gtk_label_get_text(GTK_LABEL(pcd->pane.title))); | 154 write_char_option(outstr, indent, "pane.title", gtk_label_get_text(GTK_LABEL(pcd->pane.title))); |
156 WRITE_BOOL(*pcd, pane.expanded); | 155 WRITE_BOOL(*pcd, pane.expanded); |
157 WRITE_CHAR(*pcd, key); | 156 WRITE_CHAR(*pcd, key); |
158 WRITE_INT(*pcd, height); | 157 WRITE_INT(*pcd, height); |
159 indent--; | 158 WRITE_STRING("/>"); |
160 WRITE_STRING("/>\n"); | |
161 } | 159 } |
162 | 160 |
163 static void bar_pane_comment_notify_cb(FileData *fd, NotifyType type, gpointer data) | 161 static void bar_pane_comment_notify_cb(FileData *fd, NotifyType type, gpointer data) |
164 { | 162 { |
165 PaneCommentData *pcd = data; | 163 PaneCommentData *pcd = data; |