[atk] atkobject: fix get_property for accessible-role
- From: Alejandro Piñeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk] atkobject: fix get_property for accessible-role
- Date: Thu, 22 Mar 2018 14:26:11 +0000 (UTC)
commit 30399c42a524af14a48a227ccd5f588ac54b51eb
Author: Alejandro Piñeiro <apinheiro igalia com>
Date: Thu Mar 22 15:24:00 2018 +0100
atkobject: fix get_property for accessible-role
Previous commit fixed set_property for accessible-role (as it is a
enum instead of an int). As Rico Tzschichholz pointed on bug 794513,
get_property was not updated accordingly.
atk/atkobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atk/atkobject.c b/atk/atkobject.c
index 282c604..9dbd443 100644
--- a/atk/atkobject.c
+++ b/atk/atkobject.c
@@ -1350,7 +1350,7 @@ atk_object_real_get_property (GObject *object,
g_value_set_string (value, atk_object_get_description (accessible));
break;
case PROP_ROLE:
- g_value_set_int (value, atk_object_get_role (accessible));
+ g_value_set_enum (value, atk_object_get_role (accessible));
break;
case PROP_LAYER:
if (ATK_IS_COMPONENT (accessible))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]