f-spot r4268 - in trunk: . src/Widgets
- From: rubenv svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4268 - in trunk: . src/Widgets
- Date: Thu, 14 Aug 2008 12:34:24 +0000 (UTC)
Author: rubenv
Date: Thu Aug 14 12:34:23 2008
New Revision: 4268
URL: http://svn.gnome.org/viewvc/f-spot?rev=4268&view=rev
Log:
2008-08-14 Ruben Vermeersch <ruben savanne be>
* src/Widgets/InfoBox.cs: Correctly use Delay, no need to make new
instances.
Modified:
trunk/ChangeLog
trunk/src/Widgets/InfoBox.cs
Modified: trunk/src/Widgets/InfoBox.cs
==============================================================================
--- trunk/src/Widgets/InfoBox.cs (original)
+++ trunk/src/Widgets/InfoBox.cs Thu Aug 14 12:34:23 2008
@@ -442,10 +442,8 @@
private void UpdateHistogram ()
{
- if (histogram_expander.Expanded && histogram_delay == null) {
- histogram_delay = new Delay (DelayedUpdateHistogram);
+ if (histogram_expander.Expanded)
histogram_delay.Start ();
- }
}
public void UpdateHistogram (Gdk.Pixbuf pixbuf) {
@@ -454,8 +452,6 @@
}
private bool DelayedUpdateHistogram () {
- histogram_delay = null;
-
if (Photos.Length == 0)
return false;
@@ -488,6 +484,8 @@
SetupWidgets ();
update_delay = new Delay (Update);
update_delay.Start ();
+
+ histogram_delay = new Delay (DelayedUpdateHistogram);
BorderWidth = 2;
Hide ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]