[f-spot] Fix for bgo#608216



commit 0d705371f388410d62172e1413c060d8629ac0f6
Author: Iain Lane <laney ubuntu com>
Date:   Tue Mar 9 19:36:20 2010 +0000

    Fix for bgo#608216
    
    src/Fader.cs: Change the constructor for the fader to accept a double
                  representing the number of milliseconds to fade for,
    			  instead of the number of seconds.
    
    src/FullScreenView.cs: Change the timeout for entering full screen view to 600ms.

 src/Fader.cs          |    4 ++--
 src/FullScreenView.cs |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Fader.cs b/src/Fader.cs
index 057813e..4c5440b 100644
--- a/src/Fader.cs
+++ b/src/Fader.cs
@@ -21,12 +21,12 @@ namespace FSpot {
 		double target_opacity;
 		DoubleAnimation fadin;
 
-		public Fader (Gtk.Window win, double target, int sec)
+		public Fader (Gtk.Window win, double target, double msec)
 		{
 			this.win = win;
 			win.Mapped += HandleMapped;
 			win.Unmapped += HandleUnmapped;
-			fadin = new DoubleAnimation (0.0, target, new TimeSpan (0, 0, sec), delegate (double opacity) {
+			fadin = new DoubleAnimation (0.0, target, TimeSpan.FromMilliseconds(msec), delegate (double opacity) {
 				CompositeUtils.SetWinOpacity (win, opacity);
 			});	
 		}
diff --git a/src/FullScreenView.cs b/src/FullScreenView.cs
index bdfb8d3..83b405e 100644
--- a/src/FullScreenView.cs
+++ b/src/FullScreenView.cs
@@ -85,7 +85,7 @@ namespace FSpot {
 				slide_show.Activated += SlideShowAction;
 				actions.Add (slide_show);
 
-				new Fader (this, 1.0, 3);
+				new Fader (this, 1.0, 600);
 				notebook = new Notebook ();
 				notebook.ShowBorder = false;
 				notebook.ShowTabs = false;



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