[f-spot/FSPOT_0_6_0_STABLE] avoid the black screen on start
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] avoid the black screen on start
- Date: Wed, 19 Aug 2009 13:04:29 +0000 (UTC)
commit 755aecfa25bf971282e5defbbff459c4731be78f
Author: Stephane Delcroix <stephane delcroix org>
Date: Wed Aug 19 14:31:32 2009 +0200
avoid the black screen on start
src/Widgets/SlideShow.cs | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/src/Widgets/SlideShow.cs b/src/Widgets/SlideShow.cs
index a1708f3..6559e13 100644
--- a/src/Widgets/SlideShow.cs
+++ b/src/Widgets/SlideShow.cs
@@ -80,6 +80,17 @@ namespace FSpot.Widgets
if (prev != null)
prev.Dispose ();
prev = next;
+
+ LoadNext ();
+
+ if (animation.IsRunning)
+ animation.Stop ();
+ animation.Start ();
+ }
+ }
+
+ void LoadNext ()
+ {
if (next != null) {
next = null;
}
@@ -101,11 +112,6 @@ namespace FSpot.Widgets
next = PixbufUtils.ErrorPixbuf;
}
}
-
- if (animation.IsRunning)
- animation.Stop ();
- animation.Start ();
- }
}
double progress = 0;
@@ -137,6 +143,7 @@ namespace FSpot.Widgets
protected override void OnSizeAllocated (Rectangle allocation)
{
base.OnSizeAllocated (allocation);
+ LoadNext ();
QueueDraw ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]