[at-spi2-core] Revert "Install enum header, and try to get role name from enum"
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Revert "Install enum header, and try to get role name from enum"
- Date: Sun, 29 May 2011 22:44:48 +0000 (UTC)
commit 0c418b1248fa9fc6d7f32c17519a58bb4c4d75af
Author: Mike Gorse <mgorse novell com>
Date: Sun May 29 17:24:44 2011 -0500
Revert "Install enum header, and try to get role name from enum"
This reverts commit 9ddf777a096440afe521c094544942e85e3ee838.
atspi/Makefile.am | 1 -
atspi/atspi-accessible.c | 17 -----------------
atspi/atspi.h | 2 --
3 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/atspi/Makefile.am b/atspi/Makefile.am
index 2855185..4d38ee4 100644
--- a/atspi/Makefile.am
+++ b/atspi/Makefile.am
@@ -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 \
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c
index 82d37c4..eb8a103 100644
--- a/atspi/atspi-accessible.c
+++ b/atspi/atspi-accessible.c
@@ -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);
diff --git a/atspi/atspi.h b/atspi/atspi.h
index 7f66d2a..7915760 100644
--- a/atspi/atspi.h
+++ b/atspi/atspi.h
@@ -50,6 +50,4 @@
#include "atspi-value.h"
#include "atspi-gmain.h"
-
-#include "atspi-enum-types.h"
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]