comparison src/bar_histogram.c @ 1461:e015b6573d36

improved config file formatting
author nadvornik
date Thu, 19 Mar 2009 22:12:14 +0000
parents 2441a90c4bcf
children 1b3751ac4743
comparison
equal deleted inserted replaced
1460:8178ef34d257 1461:e015b6573d36
115 PaneHistogramData *phd; 115 PaneHistogramData *phd;
116 116
117 phd = g_object_get_data(G_OBJECT(pane), "pane_data"); 117 phd = g_object_get_data(G_OBJECT(pane), "pane_data");
118 if (!phd) return; 118 if (!phd) return;
119 119
120 WRITE_STRING("<pane_histogram\n"); 120 WRITE_NL(); WRITE_STRING("<pane_histogram ");
121 indent++;
122 write_char_option(outstr, indent, "pane.title", gtk_label_get_text(GTK_LABEL(phd->pane.title))); 121 write_char_option(outstr, indent, "pane.title", gtk_label_get_text(GTK_LABEL(phd->pane.title)));
123 WRITE_BOOL(*phd, pane.expanded); 122 WRITE_BOOL(*phd, pane.expanded);
124 WRITE_INT(*phd->histogram, histogram_channel); 123 WRITE_INT(*phd->histogram, histogram_channel);
125 WRITE_INT(*phd->histogram, histogram_mode); 124 WRITE_INT(*phd->histogram, histogram_mode);
126 indent--; 125 WRITE_STRING("/>");
127 WRITE_STRING("/>\n");
128 } 126 }
129 127
130 static void bar_pane_histogram_notify_cb(FileData *fd, NotifyType type, gpointer data) 128 static void bar_pane_histogram_notify_cb(FileData *fd, NotifyType type, gpointer data)
131 { 129 {
132 PaneHistogramData *phd = data; 130 PaneHistogramData *phd = data;