[atk] atkobject: fix set_property for accessible-role
- From: Alejandro Piñeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk] atkobject: fix set_property for accessible-role
- Date: Wed, 21 Mar 2018 06:09:14 +0000 (UTC)
commit f1a50c016dba0b23f2b5ccf2dec642f63fafc221
Author: Samuel Thibault <sthibault hypra fr>
Date: Tue Mar 20 16:22:38 2018 +0100
atkobject: fix set_property for accessible-role
accessible-role was wrongly defines as being of type INT instead of
type ENUM.
atk/atkobject.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/atk/atkobject.c b/atk/atkobject.c
index fb61bab..282c604 100644
--- a/atk/atkobject.c
+++ b/atk/atkobject.c
@@ -408,11 +408,10 @@ atk_object_class_init (AtkObjectClass *klass)
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
PROP_ROLE,
- g_param_spec_int (atk_object_name_property_role,
+ g_param_spec_enum (atk_object_name_property_role,
_("Accessible Role"),
_("The accessible role of this object"),
- 0,
- G_MAXINT,
+ ATK_TYPE_ROLE,
ATK_ROLE_UNKNOWN,
G_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
@@ -1310,7 +1309,7 @@ atk_object_real_set_property (GObject *object,
atk_object_set_description (accessible, g_value_get_string (value));
break;
case PROP_ROLE:
- atk_object_set_role (accessible, g_value_get_int (value));
+ atk_object_set_role (accessible, g_value_get_enum (value));
break;
case PROP_PARENT:
atk_object_set_parent (accessible, g_value_get_object (value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]