changeset 1339:45bcfcb69f56

fixed bar_histogram headers
author nadvornik
date Sat, 28 Feb 2009 17:20:16 +0000
parents f150ab408e0b
children 361120a66609
files src/bar.c src/bar_histogram.c src/bar_histogram.h
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/bar.c	Sat Feb 28 17:12:00 2009 +0000
+++ b/src/bar.c	Sat Feb 28 17:20:16 2009 +0000
@@ -27,6 +27,7 @@
 #include "bar_keywords.h"
 #include "bar_exif.h"
 #include "bar_histogram.h"
+#include "histogram.h"
 #include "rcfile.h"
 
 #define BAR_SIZE_INCREMENT 48
@@ -259,7 +260,7 @@
 static void bar_populate_default(GtkWidget *bar)
 {
 	GtkWidget *widget;
-	widget = bar_pane_histogram_new(_("Histogram"), 80, TRUE);
+	widget = bar_pane_histogram_new(_("Histogram"), 80, TRUE, HCHAN_RGB, 0);
 	bar_add(bar, widget);
 
 	widget = bar_pane_comment_new(_("Title"), "Xmp.dc.title", TRUE, 40);
--- a/src/bar_histogram.c	Sat Feb 28 17:12:00 2009 +0000
+++ b/src/bar_histogram.c	Sat Feb 28 17:20:16 2009 +0000
@@ -12,7 +12,7 @@
 
 
 #include "main.h"
-#include "bar_comment.h"
+#include "bar_histogram.h"
 
 #include "bar.h"
 #include "metadata.h"
@@ -327,7 +327,7 @@
 }
 
 
-GtkWidget *bar_pane_histogram_new(const gchar *title, gint height, gint expanded, gint histogram_channel, gint histogram_mode)
+GtkWidget *bar_pane_histogram_new(const gchar *title, gint height, gboolean expanded, gint histogram_channel, gint histogram_mode)
 {
 	PaneHistogramData *phd;
 
--- a/src/bar_histogram.h	Sat Feb 28 17:12:00 2009 +0000
+++ b/src/bar_histogram.h	Sat Feb 28 17:20:16 2009 +0000
@@ -14,7 +14,7 @@
 #ifndef BAR_HISTOGRAM_H
 #define BAR_HISTOGRAM_H
 
-GtkWidget *bar_pane_histogram_new(const gchar *title, gint height, gboolean expanded);
+GtkWidget *bar_pane_histogram_new(const gchar *title, gint height, gboolean expanded, gint histogram_channel, gint histogram_mode);
 GtkWidget *bar_pane_histogram_new_from_config(const gchar **attribute_names, const gchar **attribute_values);
 
 #endif