f-spot r4291 - in trunk: . src



Author: rubenv
Date: Mon Aug 25 17:23:02 2008
New Revision: 4291
URL: http://svn.gnome.org/viewvc/f-spot?rev=4291&view=rev

Log:
2008-08-25  Ruben Vermeersch  <ruben savanne be>

	* src/Histogram.cs: Fix pixbuf warnings and do some cleanups.

Modified:
   trunk/ChangeLog
   trunk/src/Histogram.cs

Modified: trunk/src/Histogram.cs
==============================================================================
--- trunk/src/Histogram.cs	(original)
+++ trunk/src/Histogram.cs	Mon Aug 25 17:23:02 2008
@@ -54,12 +54,9 @@
 					}
 				}
 			}
-			if (pixbuf != null) {
-				Draw (pixbuf);
-			}
 		}
 		
-		public int Count (int channel)
+		private int Count (int channel)
 		{
 			int count = 0;
 			for (int i = 0; i < values.GetLength (0); i++) {
@@ -158,24 +155,12 @@
 		public Gdk.Pixbuf GeneratePixbuf ()
 		{
 			int height = 128;
-			pixbuf = new Gdk.Pixbuf (Gdk.Colorspace.Rgb, true, 8, values.GetLength (0), height);
+			Gdk.Pixbuf pixbuf = new Gdk.Pixbuf (Gdk.Colorspace.Rgb, true, 8, values.GetLength (0), height);
 			this.Draw (pixbuf);
 			return pixbuf;
 		}
 						     
 		private int [,] values = new int [256, 3];
-		public int [,] Values {
-			get {
-				return values;
-			}
-		}
-		
-		private Gdk.Pixbuf pixbuf;
-		public Gdk.Pixbuf Pixbuf {
-			get {
-				return pixbuf;
-			}
-		}
 		
 #if FSPOT_HISTOGRAM_MAIN
 		public static void Main (string [] args) 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]