Image 01
profile-image

OleM

Ole M
Clock Ring Screenlet

Conky by gruppler 18 comments

My Clock Ring Screenlet 0.3.3 is broken after updating to Ubuntu 11.04, maybe due to a different python version.

Error message:
File "./ClockRingScreenlet.py", line 135, in __setattr__self.__guiTimer = gobject.timeout_add(value, self.updateGUI)
TypeError: integer argument expected, got float

Fix:
Convert the "value" in line 135 to integer.

Diff:
135c135
< self.__guiTimer = gobject.timeout_add(int(round(value)), self.updateGUI)
---
> self.__guiTimer = gobject.timeout_add(value, self.updateGUI)

Still love it, though. Best regards,
Ole - Apr 30 2011