f-spot r4397 - in trunk: . src/Widgets



Author: sdelcroix
Date: Wed Sep 17 12:37:07 2008
New Revision: 4397
URL: http://svn.gnome.org/viewvc/f-spot?rev=4397&view=rev

Log:
2008-09-17  Stephane Delcroix  <sdelcroix novell com>

	* src/Widgets/FilmStrip.cs: speed up the strip a bit


Modified:
   trunk/ChangeLog
   trunk/src/Widgets/Filmstrip.cs

Modified: trunk/src/Widgets/Filmstrip.cs
==============================================================================
--- trunk/src/Widgets/Filmstrip.cs	(original)
+++ trunk/src/Widgets/Filmstrip.cs	Wed Sep 17 12:37:07 2008
@@ -673,7 +673,7 @@
 		{
 			PositionChangedHandler handler;
 			Filmstrip filmstrip;
-			uint interval = 10;
+			uint interval = 50;
 			float target;
 			float speed;
 			float acc = 50f; //images/second^2
@@ -687,7 +687,7 @@
 			public void MoveTo (float target)
 			{
 				this.target = target;
-				GLib.Timeout.Add (interval, new GLib.TimeoutHandler (Step)); 	
+				GLib.Timeout.Add (interval, new GLib.TimeoutHandler (Step));
 			}
 
 			bool Step ()
@@ -713,7 +713,7 @@
 
 				float increment = speed * interval / 1000f;
 
-				if (Math.Abs (distance - increment) < 0.01) {
+				if (Math.Abs (distance - increment) < 0.4) {
 					handler (target);
 					return false;
 				}



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