[f-spot] use a low priority g_timeout instead of a g_idle, so the animator isn't run more often than 25 times
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] use a low priority g_timeout instead of a g_idle, so the animator isn't run more often than 25 times
- Date: Mon, 4 May 2009 03:02:54 -0400 (EDT)
commit bb37c3aca2f415187a1f9fd1e5c367b3c87b3b60
Author: Stephane Delcroix <stephane delcroix org>
Date: Sun May 3 21:56:38 2009 +0200
use a low priority g_timeout instead of a g_idle, so the animator isn't run more often than 25 times a sec
---
src/Bling/Animation.cs | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Bling/Animation.cs b/src/Bling/Animation.cs
index 6806961..ad1bdfb 100644
--- a/src/Bling/Animation.cs
+++ b/src/Bling/Animation.cs
@@ -68,7 +68,7 @@ namespace FSpot.Bling
throw new InvalidOperationException ("Can't Resume a non running animation");
starttime = DateTimeOffset.Now - pausedafter;
state = AnimationState.Running;
- GLib.Idle.Add (Handler);
+ GLib.Timeout.Add (40, Handler, GLib.Priority.DefaultIdle);
}
public void Start ()
@@ -77,7 +77,7 @@ namespace FSpot.Bling
throw new InvalidOperationException ("Can't Start() a running or paused animation");
starttime = DateTimeOffset.Now;
state = AnimationState.Running;
- GLib.Idle.Add (Handler);
+ GLib.Timeout.Add (40, Handler, GLib.Priority.DefaultIdle);
}
public void Stop ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]