[hamster-applet] Update activity duration each minute in standalone.



commit d296bf11bfeaf05aec2a81d33df5afadeb4f33ef
Author: Mjumbe Wawatu Ukweli <mjumbewu gmail com>
Date:   Mon Apr 19 12:59:08 2010 -0400

    Update activity duration each minute in standalone.

 src/hamster-standalone |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster-standalone b/src/hamster-standalone
index ecebc03..0c003da 100755
--- a/src/hamster-standalone
+++ b/src/hamster-standalone
@@ -184,6 +184,8 @@ class ProjectHamster(object):
             if duration and duration % self.notify_interval == 0:
                 message = _(u"Working on <b>%s</b>") % self.last_activity['name']
 
+            self.get_widget("last_activity_duration").set_text(stuff.format_duration(duration) or _("Just started"))
+
         elif self.notify_on_idle:
             #if we have no last activity, let's just calculate duration from 00:00
             if (now.minute + now.hour *60) % self.notify_interval == 0:



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