# HG changeset patch # User nadvornik # Date 1235841616 0 # Node ID 45bcfcb69f5678b4438521e2860ab0cd8752a922 # Parent f150ab408e0bab8622296b909f747d556830f2f4 fixed bar_histogram headers diff -r f150ab408e0b -r 45bcfcb69f56 src/bar.c --- 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); diff -r f150ab408e0b -r 45bcfcb69f56 src/bar_histogram.c --- 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; diff -r f150ab408e0b -r 45bcfcb69f56 src/bar_histogram.h --- 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