Fix for #382328. add missing const. ditto. ditto.
authorChristian Persch <chpe@gnome.org>
Thu, 22 Mar 2007 10:47:41 +0000 (10:47 +0000)
committerHarry Lu <haip@src.gnome.org>
Thu, 22 Mar 2007 10:47:41 +0000 (10:47 +0000)
2007-03-22  Christian Persch <chpe@gnome.org>

        Fix for #382328.
        * atk/atkrelation.c: (atk_relation_type_get_name): add missing const.
        * atk/atkstate.c: (atk_state_type_get_name): ditto.
        * atk/atktext.c: (atk_text_attribute_get_name): ditto.

svn path=/trunk/; revision=1164

ChangeLog
atk/atkrelation.c
atk/atkstate.c
atk/atktext.c

index b965eca..ab412fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-03-22  Christian Persch <chpe@gnome.org>
+
+       Fix for #382328.
+       * atk/atkrelation.c: (atk_relation_type_get_name): add missing const.
+       * atk/atkstate.c: (atk_state_type_get_name): ditto.
+       * atk/atktext.c: (atk_text_attribute_get_name): ditto.
+
 2007-03-12  Li Yuan <li.yuan@sun.com>
 
        * configure.in, NEWS:
index bb5442d..92000c9 100755 (executable)
@@ -135,7 +135,7 @@ atk_relation_type_get_name (AtkRelationType type)
 {
   GTypeClass *type_class;
   GEnumValue *value;
-  gchar *name = NULL;
+  const gchar *name = NULL;
 
   type_class = g_type_class_ref (ATK_TYPE_RELATION_TYPE);
   g_return_val_if_fail (G_IS_ENUM_CLASS (type_class), NULL);
index 8dbb495..7483b98 100755 (executable)
@@ -62,7 +62,7 @@ atk_state_type_get_name (AtkStateType type)
 {
   GTypeClass *type_class;
   GEnumValue *value;
-  gchar *name = NULL;
+  const gchar *name = NULL;
 
   type_class = g_type_class_ref (ATK_TYPE_STATE_TYPE);
   g_return_val_if_fail (G_IS_ENUM_CLASS (type_class), NULL);
index bc7d7ac..304a5eb 100755 (executable)
@@ -1023,7 +1023,7 @@ atk_text_attribute_get_name (AtkTextAttribute attr)
 {
   GTypeClass *type_class;
   GEnumValue *value;
-  gchar *name = NULL;
+  const gchar *name = NULL;
 
   type_class = g_type_class_ref (ATK_TYPE_TEXT_ATTRIBUTE);
   g_return_val_if_fail (G_IS_ENUM_CLASS (type_class), NULL);