diff options
author | Li Yuan <li.yuan@sun.com> | 2007-07-27 09:13:41 +0000 |
---|---|---|
committer | Li Yuan <liyuan@src.gnome.org> | 2007-07-27 09:13:41 +0000 |
commit | 194860b7423cefdbd5719f68563a4d8239e76e62 (patch) | |
tree | 0d67338036fa3757e99f97966c90049e782fd286 | |
parent | 71144a97c30c40cd24defb5c88d0cad6af7535b7 (diff) | |
download | atk-194860b7423cefdbd5719f68563a4d8239e76e62.tar.gz |
Bug #460851. A new API to get the current version of ATK.
2007-07-27 Li Yuan <li.yuan@sun.com>
* atk/atkutil.c: (atk_get_version):
* atk/atkutil.h:
Bug #460851. A new API to get the current version of ATK.
svn path=/trunk/; revision=1186
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | atk/atkutil.c | 16 | ||||
-rwxr-xr-x | atk/atkutil.h | 5 |
3 files changed, 27 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2007-07-27 Li Yuan <li.yuan@sun.com> + + * atk/atkutil.c: (atk_get_version): + * atk/atkutil.h: + Bug #460851. A new API to get the current version of ATK. + 2007-06-04 Li Yuan <li.yuan@sun.com> * configure.in, NEWS: diff --git a/atk/atkutil.c b/atk/atkutil.c index 1aca841..a36b6ad 100755 --- a/atk/atkutil.c +++ b/atk/atkutil.c @@ -19,6 +19,7 @@ #include "atkutil.h" #include "atkmarshal.c" +#include "config.h" static void atk_util_class_init (AtkUtilClass *klass); @@ -381,3 +382,18 @@ atk_get_toolkit_version (void) return retval; } + +/** + * atk_get_version: + * + * Gets the current version for ATK. + * + * Returns: version string for ATK + **/ + +G_CONST_RETURN gchar * +atk_get_version (void) +{ + return VERSION; +} + diff --git a/atk/atkutil.h b/atk/atkutil.h index 57e804e..d373b0f 100755 --- a/atk/atkutil.h +++ b/atk/atkutil.h @@ -234,6 +234,11 @@ G_CONST_RETURN gchar *atk_get_toolkit_name (void); */ G_CONST_RETURN gchar *atk_get_toolkit_version (void); +/* + * Gets the current version of ATK + */ +G_CONST_RETURN gchar *atk_get_version (void); + #ifdef __cplusplus } #endif /* __cplusplus */ |