Glock: GTK+/Cairo Analog Clock


Glock is a simple analog clock program. It is written in C and uses the GTK+ toolkit, and optionally the Cairo graphics library.

The original purpose of glock was to have a simple demo of an undecorated non-rectangular window using gtk_widget_shape_combine_mask(), moveable with the mouse using gtk_window_begin_move_drag().

Release 0.04 of glock uses Cairo (if available at compile time) to draw a nicer looking clock. Cairo is generally available on systems with GTK 2.8 or later, such as Fedora Core 5.

glock screenshot


Glock is made available under the terms of the Free Software Foundation's General Public License, Version 2.

Source code is available for download.

Glock development uses the Subversion revision control system. Instructions for access to the Subversion repository for Glock are found at, and there is a web interface to browse the repository at

Related web pages

Last updated February 20, 2006

Copyright 2005, 2006 Eric Smith

hacker emblem
Best Viewed With Any Browser Valid HTML 4.01! Valid CSS!

check now

check now