GtkHotkey is a platform independent hotkey handling library for GTK+ applications.
Idea and Future
I wrote GtkHotkey because I needed a platform independent way to manage and bind desktop hotkeys. Gnome applications can register hotkeys via GConf and Metacity, but I wanted desktop neutrality and more flexibility.
I would like to see the functionality end up in Gtk+ some day, but there are obstacles, and I needed a solution fast. Should it turn out that such functionality is not feasible in Gtk+ itself, this library is still simple and has a narrow well defined goal, which should make it maintainable in the future.
To ease maintainability unit tests has been implemented using the gtest framework found in glib versions >= 2.15.
It is the goal to also include a set of Gtk+ widgets for managing hotkeys as well as a global configuration dialog for editing all registered hotkeys.
The idea of the library is to keep it as simple as possible, while sticking to an object oriented design, without falling back to C-isms (read: '#ifdefs') where it would otherwise be tempting.
It can be argued that the code base is too small to be put in a separate library. However the functionality is very well defined and would probably appear oddly placed in some bigger helper library for GTk+ apps, where it would likely live in a hodge podge of unrelated functionality.
What's New in This Release: [ read full changelog ]
· Serkan Kaba of Gentoo fame was so kind to supply a series of build fixes for GtkHotkey 0.2.