[f-spot/FSPOT_0_6_0_STABLE] no longer starts the background timer for non-slideshow fullscreen
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] no longer starts the background timer for non-slideshow fullscreen
- Date: Mon, 24 Aug 2009 15:11:25 +0000 (UTC)
commit 69fc6991bd85c1133ba22873286a8a5e00347426
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Aug 24 17:06:30 2009 +0200
no longer starts the background timer for non-slideshow fullscreen
src/Widgets/SlideShow.cs | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/Widgets/SlideShow.cs b/src/Widgets/SlideShow.cs
index c458a05..7c8ce61 100644
--- a/src/Widgets/SlideShow.cs
+++ b/src/Widgets/SlideShow.cs
@@ -20,6 +20,7 @@ namespace FSpot.Widgets
{
public class SlideShow : DrawingArea
{
+ bool running;
BrowsablePointer item;
#region Public API
public SlideShow (BrowsablePointer item) : base ()
@@ -60,11 +61,13 @@ namespace FSpot.Widgets
Delay flip;
public void Start ()
{
+ running = true;
flip.Start ();
}
public void Stop ()
{
+ running = false;
flip.Stop ();
}
#endregion
@@ -75,7 +78,8 @@ namespace FSpot.Widgets
void HandleItemChanged (object sender, EventArgs e)
{
flip.Stop ();
- flip.Start ();
+ if (running)
+ flip.Start ();
lock (sync_handle) {
if (prev != null)
prev.Dispose ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]