Bug #460851. A new API to get the current version of ATK.
authorLi Yuan <li.yuan@sun.com>
Fri, 27 Jul 2007 09:13:41 +0000 (09:13 +0000)
committerLi Yuan <liyuan@src.gnome.org>
Fri, 27 Jul 2007 09:13:41 +0000 (09:13 +0000)
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

ChangeLog
atk/atkutil.c
atk/atkutil.h

index 5bb5e04..1f3d6af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 1aca841..a36b6ad 100755 (executable)
@@ -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;
+}
+
index 57e804e..d373b0f 100755 (executable)
@@ -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 */