From 5d9a5c8aba0cec7551cfe3b4c7ae6657a2ac7d2d Mon Sep 17 00:00:00 2001 From: Padraig O'Briain Date: Tue, 29 May 2001 16:19:26 +0000 Subject: [PATCH] Define new properties accessible-text, accessible-caret, * atk/atkobject.c: Define new properties accessible-text, accessible-caret, accessible-selection and accessible-value --- ChangeLog | 4 ++++ atk/atkobject.c | 46 +++++++++++++++++++++++++++++++++++++--------- 2 files changed, 41 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9aaf168..df306e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-05-29 Padraig O'Briain + + * atk/atkobject.c: Define new properties accessible-text, + accessible-caret, accessible-selection and accessible-value 2001-05-29 Brian Cameron * docs/atk-sections.txt diff --git a/atk/atkobject.c b/atk/atkobject.c index e6a1128..37e3782 100755 --- a/atk/atkobject.c +++ b/atk/atkobject.c @@ -35,6 +35,8 @@ enum PROP_STATE, /* AtkStateSet for the object has changed */ PROP_TEXT, /* Used only by AtkText implementors */ PROP_CARET, /* Used only by AtkText implementors */ + PROP_SELECTION, + PROP_VALUE, PROP_LAST /* gobject convention */ }; @@ -70,6 +72,10 @@ static const gchar* atk_object_name_property_state = "accessible-state"; static const gchar* atk_object_name_property_description = "accessible-description"; static const gchar* atk_object_name_property_child = "accessible-child"; static const gchar* atk_object_name_property_parent = "accessible-parent"; +static const gchar* atk_object_name_property_text = "accessible-text"; +static const gchar* atk_object_name_property_caret = "accessible-caret"; +static const gchar* atk_object_name_property_selection = "accessible-selection"; +static const gchar* atk_object_name_property_value = "accessible-value"; GType atk_object_get_type (void) @@ -155,19 +161,41 @@ atk_object_class_init (AtkObjectClass *klass) "Is used to notify that the parent has been changed ", ATK_TYPE_OBJECT, G_PARAM_READWRITE)); -#if 0 g_object_class_install_property (gobject_class, PROP_TEXT, - g_param_spec_ccallback ("accessible_text", "Accessible Text", - "This object\'s accessible text contents", - G_PARAM_READWRITE)); + g_param_spec_object (atk_object_name_property_text, + "Accessible Text", + "Is used to notify that the text has been changed ", + ATK_TYPE_OBJECT, + G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_CARET, - g_param_spec_ccallback ("accessible_caret", "Accessible Text Caret", - "The current text caret state and position " - "for this component", - G_PARAM_READWRITE)); -#endif + g_param_spec_int (atk_object_name_property_caret, + "Accessible Caret", + "Is used to notify that the caret position has been changed ", + 0, + G_MAXINT, + 0, + G_PARAM_READWRITE)); + g_object_class_install_property (gobject_class, + PROP_SELECTION, + g_param_spec_object (atk_object_name_property_selection, + "Accessible Selection", + "Is used to notify that the selection has been changed ", + ATK_TYPE_OBJECT, + G_PARAM_READWRITE)); + /* + * XXX We need to reconsider the value type for this + */ + g_object_class_install_property (gobject_class, + PROP_VALUE, + g_param_spec_int (atk_object_name_property_value, + "Accessible Value", + "Is used to notify that the value has been changed ", + 0, + G_MAXINT, + 0, + G_PARAM_READWRITE)); /* * The signal "children_changed" supports two details: * "add" and "remove" -- 2.7.4