GNOME Bugzilla – Bug 690379
Atk lacks any kind of version utilities
Last modified: 2012-12-28 16:04:57 UTC
Several glib based projects include some basic API in order to request the current version of the installed library. But ATK lacks those. Those utilities are useful for some other libraries using them, like for example WebKitGTK that uses it in order to know which functionality can use. We can take gtk [1] and clutter [2] ones as example. [1] http://git.gnome.org/browse/gtk+/tree/gtk/gtkversion.h.in [2] http://git.gnome.org/browse/clutter/tree/clutter/clutter-version.h.in
Created attachment 232292 [details] [review] Fixes the bug It adds several macro and function utilities related to atk versioning. This is heavily based on gtk ones (also the documentation). I took a look to clutter ones and I think that for the moment we don't need so many utilities. This patch also includes the changes on /doc, in order to include the documentation of this utilities.
Created attachment 232293 [details] [review] Little test This is a little test that use the new API added on the patch I have just attached. Not sure if it is worth to include a more formal form of this test on any future set of ATK unit tests (feedback is welcome) (note: there is a tests directory on ATK. They are obsolete, and somehow not really useful, as they are implemented as GTK modules)
(In reply to comment #1) > Created an attachment (id=232292) [details] [review] > Fixes the bug > Patch committed with some documentation typos fixed. Closing the bug.