diff src/histogram.c @ 1298:c37f36b97173

added histogram pane
author nadvornik
date Sun, 15 Feb 2009 19:25:55 +0000
parents 7ac9664242b2
children 8d1f9739c06a
line wrap: on
line diff
--- a/src/histogram.c	Sun Feb 15 17:27:48 2009 +0000
+++ b/src/histogram.c	Sun Feb 15 19:25:55 2009 +0000
@@ -154,7 +154,7 @@
 	return histmap;
 }
 
-HistMap *histmap_get(FileData *fd)
+const HistMap *histmap_get(FileData *fd)
 {
 	if (fd->histmap) return fd->histmap;
 	
@@ -166,7 +166,7 @@
 	return NULL;
 }
 
-gint histogram_draw(Histogram *histogram, HistMap *histmap, GdkPixbuf *pixbuf, gint x, gint y, gint width, gint height)
+gint histogram_draw(Histogram *histogram, const HistMap *histmap, GdkPixbuf *pixbuf, gint x, gint y, gint width, gint height)
 {
 	/* FIXME: use the coordinates correctly */
 	gint i;