From 194860b7423cefdbd5719f68563a4d8239e76e62 Mon Sep 17 00:00:00 2001 From: Li Yuan Date: Fri, 27 Jul 2007 09:13:41 +0000 Subject: [PATCH] Bug #460851. A new API to get the current version of ATK. 2007-07-27 Li Yuan * 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 --- ChangeLog | 6 ++++++ atk/atkutil.c | 16 ++++++++++++++++ atk/atkutil.h | 5 +++++ 3 files changed, 27 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5bb5e04..1f3d6af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-07-27 Li Yuan + + * 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 * 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 */ -- 2.7.4