Revert "Install enum header, and try to get role name from enum"
authorMike Gorse <mgorse@novell.com>
Sun, 29 May 2011 22:24:44 +0000 (17:24 -0500)
committerMike Gorse <mgorse@novell.com>
Sun, 29 May 2011 22:24:44 +0000 (17:24 -0500)
This reverts commit 9ddf777a096440afe521c094544942e85e3ee838.

atspi/Makefile.am
atspi/atspi-accessible.c
atspi/atspi.h

index 2855185..4d38ee4 100644 (file)
@@ -27,7 +27,6 @@ libatspiinclude_HEADERS = \
        atspi-device-listener-private.h \
        atspi-document.h \
        atspi-editabletext.h \
-       atspi-enum-types.h \
        atspi-event-listener.h \
        atspi-event-listener-private.h \
 atspi-gmain.c \
index 82d37c4..eb8a103 100644 (file)
@@ -578,24 +578,7 @@ atspi_accessible_get_role (AtspiAccessible *obj, GError **error)
 gchar *
 atspi_accessible_get_role_name (AtspiAccessible *obj, GError **error)
 {
-  AtspiRole role = atspi_accessible_get_role (obj, error);
   char *retval = NULL;
-  GTypeClass *type_class;
-  GEnumValue *value;
-  const gchar *name = NULL;
-
-  type_class = g_type_class_ref (ATSPI_TYPE_ROLE);
-  g_return_val_if_fail (G_IS_ENUM_CLASS (type_class), NULL);
-
-  value = g_enum_get_value (G_ENUM_CLASS (type_class), role);
-
-  if (value)
-    {
-      retval = value->value_nick;
-    }
-
-  if (retval)
-    return g_strdup (retval);
 
   g_return_val_if_fail (obj != NULL, NULL);
 
index 7f66d2a..7915760 100644 (file)
@@ -50,6 +50,4 @@
 #include "atspi-value.h"
 
 #include "atspi-gmain.h"
-
-#include "atspi-enum-types.h"
 #endif