Mercurial > geeqie
comparison src/bar.c @ 1461:e015b6573d36
improved config file formatting
author | nadvornik |
---|---|
date | Thu, 19 Mar 2009 22:12:14 +0000 |
parents | 8036c5b779ca |
children | 1b3751ac4743 |
comparison
equal
deleted
inserted
replaced
1460:8178ef34d257 | 1461:e015b6573d36 |
---|---|
159 if (!bar) return; | 159 if (!bar) return; |
160 | 160 |
161 bd = g_object_get_data(G_OBJECT(bar), "bar_data"); | 161 bd = g_object_get_data(G_OBJECT(bar), "bar_data"); |
162 if (!bd) return; | 162 if (!bd) return; |
163 | 163 |
164 WRITE_STRING("<bar\n"); | 164 WRITE_NL(); WRITE_STRING("<bar "); |
165 indent++; | |
166 write_bool_option(outstr, indent, "enabled", GTK_WIDGET_VISIBLE(bar)); | 165 write_bool_option(outstr, indent, "enabled", GTK_WIDGET_VISIBLE(bar)); |
167 write_uint_option(outstr, indent, "width", bd->width); | 166 write_uint_option(outstr, indent, "width", bd->width); |
168 indent--; | 167 WRITE_STRING(">"); |
169 WRITE_STRING(">\n"); | |
170 | 168 |
171 list = gtk_container_get_children(GTK_CONTAINER(bd->vbox)); | 169 list = gtk_container_get_children(GTK_CONTAINER(bd->vbox)); |
172 work = list; | 170 work = list; |
173 while (work) | 171 while (work) |
174 { | 172 { |
184 | 182 |
185 work = work->next; | 183 work = work->next; |
186 } | 184 } |
187 g_list_free(list); | 185 g_list_free(list); |
188 | 186 |
189 WRITE_STRING("</bar>\n"); | 187 WRITE_NL(); WRITE_STRING("</bar>"); |
190 } | 188 } |
191 | 189 |
192 | 190 |
193 void bar_add(GtkWidget *bar, GtkWidget *pane) | 191 void bar_add(GtkWidget *bar, GtkWidget *pane) |
194 { | 192 { |