MacSlow\'s Cairo-Clock

Various Gnome Stuff

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

It’s an analog clock displaying the system-time. “So what?”, you might say, “There are about 1.023.493 of those already out there!”. Indeed there are and probably some more, but this one is a bit different. It leverages the new visual features offered by Xorg 6.9/7.0 in combination with a compositing-manager (e.g. like xcompmgr), gtk+ 2.8.x and cairo 1.0.2 to produce a time-display with pretty-pixels.
Last changelog:

14 years ago

New feautures are for release 0.3.2 are...

- 24h-mode added
- many new themes

------

moonhyunjin@gmail.com recently sent me a FC5test3 source- and binary-RPM of the 0.3.1 release. Added them to the available download-links.

------

I just added a gentoo-overlay for the 0.3.1 release kindly provided to me by sasuomin@uusikaupunki.fi

------

New feautures are for release 0.3.1 are...

- added four new themes (zen, antique, - radium, funky)
- fixed desktop-menu entry
- added man-page
- shaped input via XShape 1.1 added
- more robust command-line handling
- sticky-option added

------

New feautures are for release 0.3 are...

- persistence (all settings are remembered)
- performance-tuning (uses surface buffering)
- desktop menu-entry (see Applications/Accessories)
- preferences dialog (quite HIG-compliant)
- on-the-fly theme-switching
- four themes (default, fdo, glassy, simple)
- more command-line arguments (try --help)
- binary- and source-rpms (for FC5test2)
- deb for Ubuntu (Dapper Drake)
- overlay/ebuild for Gentoo

C

MacSlow

14 years ago

Sure it does. No reason why it should not :) I also had my fair bit of play-time with the clock running under Xgl/compiz. Check out http://macslow.thepimp.net/?p=24

Best regards...

MacSlow

Report

linmain

14 years ago

hi macslow! i don't see anything of the clock! yet i can click on the clock(guessing its position) and call configure. but regardless what i'm setting, the clock still isn't visible! i use the newest librsvg, for which i had to replace a method name in your sources, to compile it cleanly:

rsvg_cairo_render -> rsvg_handle_render_cairo

anyway, after running kompmgr, and cairo-clock i can't see the clock. any ideas?

Report

C

MacSlow

14 years ago

Yeah, they changed that call from librsvg 2.13.90 to 2.13.91 *sigh* I also found out yesterday. Just when a few folks form the community helped with getting rpms and ebuilds done.

Best regards...

MacSlow

Report

linmain

14 years ago

ok, solved. my librsvg was too recent.
one note finally: i thin we really need clicking through windows under X. perhaps X should manage if pixels are 100% transparent, then the user can click on it and the click is delegated to the window behind it.

Report

C

MacSlow

14 years ago

Indeed that missing "click-through" is really annoying (for people that know what's going on) or just plain confusing (for people that don't know "how stuff works (tm)"). For 0.4 I'll have to get something sorted out for this glitch with the X11-Shape extension. Fixes for the newest librsvg, a command-line parsing bug , man-page installation and the wrong path in the desktop-menuitem will also come with that release.

But after the patch for the changed librsvg call it works under KDE (and its compositing manager) for you?

Best regards...

MacSlow

Report

linmain

14 years ago

indeed, it worked just fine. see this screenshot:

http://img148.imageshack.us/img148/3908/screeny303jz.jpg

Report

BrX

14 years ago

is that metacity your using?

Report

C

MacSlow

14 years ago

Almost... it's Composity.

Best regards...

MacSlow

Report

leprechaun

14 years ago

Hi :D
I found it great, I was searching something similar from ages ... but, ehrr, I've a little problem: it starts in the ugliest black rectangle ever O_O!

Some hint on how to resolve that issue?
I'm using dapper drake, so I have all *-dev packages (cairo, svg ... maybe I'm missing something?), xcompmgr, and so on.

Thanks for the help and the clock! :)

Report

C

MacSlow

14 years ago

Do you have the Composite-extension actually turned on? Like so:

Section "Extensions"
Option "Composite" "Enable"
EndSection

in your /etc/X11/xorg.conf ? And do you also have xcompmgr actually running ?

Best regards...

MacSlow

Report

leprechaun

14 years ago

Yes and Yes ...
Btw I've just tried a fresh install of dapper and now it works :D
Mystery of unstable... :P

Thanks a lot!

Report

rob2687

14 years ago

Yeah, I get errors during the make too.
I have the libs from the Dapper repos.

cc `pkg-config --libs gtk+-2.0 librsvg-2.0` cairo-clock.o -o cairo-clock
/usr/lib/gcc/i486-linux-gnu/4.0.2/../../../../lib/libcairo.so: undefined reference to `FT_GlyphSlot_Embolden'
collect2: ld returned 1 exit status
make: *** [cairo-clock] Error 1

Report

rob2687

14 years ago

Nevermind, I had to reinstall cairo from CVS after installing the necessary stuff from the Dapper repos.

Report

gryphen

14 years ago

I'm pretty sure I have all the necessary 'libs' but i'm getting the following errors:

[mike@localhost cairo-clock-0.2]$ su
Password:
[root@localhost cairo-clock-0.2]# make
cc -Wall -Os `pkg-config --cflags gtk+-2.0 librsvg-2.0` -c cairo-clock.c -o cairo-clock.o
cairo-clock.c:41:32: librsvg/rsvg-cairo.h: No such file or directory
cairo-clock.c:85: error: syntax error before "g_DimensionData"
cairo-clock.c:85: warning: type defaults to `int' in declaration of `g_DimensionData'
cairo-clock.c:85: warning: data definition has no type or storage class
cairo-clock.c: In function `render':
cairo-clock.c:174: error: request for member `width' in something not a structure or union
cairo-clock.c:175: error: request for member `height' in something not a structure or union
cairo-clock.c:188: error: request for member `width' in something not a structure or union
cairo-clock.c:189: error: request for member `height' in something not a structure or union
cairo-clock.c:199: warning: implicit declaration of function `rsvg_cairo_render'
cairo-clock.c: In function `main':
cairo-clock.c:337: warning: implicit declaration of function `rsvg_handle_new_from_file'
cairo-clock.c:337: warning: assignment makes pointer from integer without a cast
cairo-clock.c:339: warning: implicit declaration of function `rsvg_handle_get_dimensions'
make: *** [cairo-clock.o] Error 1

Thank you very much in advance for your help figuring this out. Also an awesome clock!

Report

C

MacSlow

14 years ago

Check that you have at least librsvg-2.13.0 and the corresponding header files installed (e.g. the preview-release "Dapper Drake flight 3" of Ubuntu has this, also "Fedora Core 5 test 2" should have this). I myself only tested this with librsvg 2.13.5, which comes with "Dapper Drake".

In general I want to apologize for setting the requirements-bar that high with all those "bleeding-edge" libs and tools only available in preview-releases of the coming distributions. But it is all too tempting not to play around with all this :)

BTW: Don't do everyday stuff on your machine as root-user!

Best regards...

MacSlow

Report

gryphen

14 years ago

[mike@gryphen cairo-clock-0.2]$ make
cc -Wall -Os `pkg-config --cflags gtk+-2.0 librsvg-2.0` -c cairo-clock.c -o cairo-clock.o
cairo-clock.c:41:32: librsvg/rsvg-cairo.h: No such file or directory
cairo-clock.c: In function `render':
cairo-clock.c:199: warning: implicit declaration of function `rsvg_cairo_render'
make: *** [cairo-clock.o] Error 1
[mike@gryphen cairo-clock-0.2]$


does this mean i need to 'point' to somewhere?

Report

C

MacSlow

14 years ago

Hm... off the top of my head I've no clue what might be wrong on your side. Maybe paste the output of:

pkg-config --modversion --cflags librsvg-2.0

Perhaps that might be helpful with this kind of remote error-hunt :)

Best regards...

MacSlow

Report

umarmung

14 years ago

I know, it's useless eye candy, but I can't help - I love it. :P

Report

C

MacSlow

14 years ago

Nah... it's not useless... it displays the time. That is some damn important function ;-)

Glad, you people like it... I appreciate the feedback!

Best regards...

MacSlow

Report

slackcor

14 years ago

It's beautiful

Report

14 years ago

New feautures are for release 0.3.2 are...

- 24h-mode added
- many new themes

------

moonhyunjin@gmail.com recently sent me a FC5test3 source- and binary-RPM of the 0.3.1 release. Added them to the available download-links.

------

I just added a gentoo-overlay for the 0.3.1 release kindly provided to me by sasuomin@uusikaupunki.fi

------

New feautures are for release 0.3.1 are...

- added four new themes (zen, antique, - radium, funky)
- fixed desktop-menu entry
- added man-page
- shaped input via XShape 1.1 added
- more robust command-line handling
- sticky-option added

------

New feautures are for release 0.3 are...

- persistence (all settings are remembered)
- performance-tuning (uses surface buffering)
- desktop menu-entry (see Applications/Accessories)
- preferences dialog (quite HIG-compliant)
- on-the-fly theme-switching
- four themes (default, fdo, glassy, simple)
- more command-line arguments (try --help)
- binary- and source-rpms (for FC5test2)
- deb for Ubuntu (Dapper Drake)
- overlay/ebuild for Gentoo

12345678910
Be the first to comment
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.3.2
updated Apr 01 2006
added Jan 23 2006
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0