diff src/typedefs.h @ 273:e0e2c2b72c5a

reworked the histogram patch by Uwe Ohse, most of the code is in separate files
author nadvornik
date Tue, 08 Apr 2008 20:56:50 +0000
parents c7021159079d
children 4f526d436873
line wrap: on
line diff
--- a/src/typedefs.h	Tue Apr 08 17:26:13 2008 +0000
+++ b/src/typedefs.h	Tue Apr 08 20:56:50 2008 +0000
@@ -122,6 +122,8 @@
 typedef struct _FullScreenData FullScreenData;
 
 typedef struct _PixmapFolders PixmapFolders;
+typedef struct _Histogram Histogram;
+
 
 
 struct _ImageLoader
@@ -379,6 +381,13 @@
 	gint ref;
 };
 
+struct _Histogram {
+	gulong histmap[256*4];
+	gint histogram_chan;
+	gint histogram_logmode;
+};
+
+
 struct _LayoutWindow
 {
 	gchar *path;
@@ -489,6 +498,9 @@
 	GtkWidget *bar_exif;
 	GtkWidget *bar_info;
 
+	gint histogram_enabled;
+	Histogram *histogram;
+
 	gint bar_sort_enabled;
 	gint bar_exif_enabled;
 	gint bar_info_enabled;