Joachim Breitner's Homepage
Analog Clock for the Gnome Panel
Since I'm using a thin vertical panel, the normal text-based panel clock provided by Gnome is too wide (I lost sub-10-minutes-precsision). So, for a long while, I was looking for a analog clock applet for the panel. Not having found one, today I thought I'd do it myself.
Since I'm lazy, I searched for a ready analog clock widget, which I found at the ruby-gnome site. That forced my to use ruby (which I haven't yet used), but luckily it was similar enough to python to not have problems with the syntax. Adding that code to a sample Ruby panel applet did the work. I spend most time trying to figure out how to resize the applet correctly. Not sure if I did it correctly, but it seems to work. Comments appreciated.
To install this, you have to put the ruby script somewhere, make it executable and put the bonobo server file to /usr/lib/bonobo/servers, and then adjust the path to the ruby script therein. You need at least the libgnome-applet2-ruby package.
Comments
Would a Cairo drawing aread support panel tranparency? In that case, I might rewrite that part of the code...
A while ago, I made an analog clock for the gnomepanel, using ruby. It worked fined, but I missed the calender functionality of the standard Gnome panel clock. So today, I crudely patched the clock applet from gnome-panel to display a relatively nice
http://www.yaodownload.com/software-development/components-libraries/skinclock/
Have something to say? You can post a comment by sending an e-Mail to me at <mail@joachim-breitner.de>, and I will include it here.