[Buildbot-commits] buildbot/buildbot/clients gtkPanes.py, 1.11, 1.12

Brian Warner warner at users.sourceforge.net
Fri Jun 2 03:32:31 UTC 2006


Update of /cvsroot/buildbot/buildbot/buildbot/clients
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4716/buildbot/clients

Modified Files:
	gtkPanes.py 
Log Message:
[project @ statusgui improvements]

Original author: warner at lothar.com
Date: 2006-06-02 03:28:54

Index: gtkPanes.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/clients/gtkPanes.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- gtkPanes.py	30 May 2006 07:07:40 -0000	1.11
+++ gtkPanes.py	2 Jun 2006 03:32:29 -0000	1.12
@@ -275,11 +275,16 @@
         self.label.set_text(text)
 
     def setColor(self, color):
+        if not color:
+            return
         self.box.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse(color))
 
     def setETA(self, eta):
-        self.when = now() + eta
-        self.startTimer()
+        if eta:
+            self.when = now() + eta
+            self.startTimer()
+        else:
+            self.stopTimer()
 
     def startTimer(self):
         self.stopTimer()
@@ -300,7 +305,7 @@
             return True # restart timer
         else:
             # done
-            self.label.set_text("%s\n[soon]" % (self.text,))
+            self.label.set_text("%s\n[soon]\n[overdue]" % (self.text,))
             self.timer = None
             return False
 
@@ -376,6 +381,7 @@
         self.step.setColor("white")
         self.step.stopTimer()
     def stepETAUpdate(self, stepname, eta):
+        print "[%s] stepETAUpdate: %s %s" % (self.name, stepname, eta)
         self.step.setETA(eta)
 
 





More information about the Commits mailing list