1 From: Maciej Florek <m.florek@samsung.com>
2 Date: Mon, 8 Jun 2015 18:09:33 +0200
3 Subject: clear_highlight callback added to the AtkComponentInterface
5 Change-Id: I8aa497f82998d862e2fb48cc643574d85f0c49e6
6 Signed-off-by: Maciej Florek <m.florek@samsung.com>
9 atk/atkcomponent.c | 22 ++++++++++++++++++++++
10 atk/atkcomponent.h | 2 ++
11 3 files changed, 25 insertions(+)
13 diff --git a/atk/atk.symbols b/atk/atk.symbols
14 index 7ac27b5..09e9f40 100644
18 atk_component_get_type
19 atk_component_grab_focus
20 atk_component_grab_highlight
21 + atk_component_clear_highlight
22 atk_component_ref_accessible_at_point
23 atk_component_remove_focus_handler
24 atk_component_set_extents
25 diff --git a/atk/atkcomponent.c b/atk/atkcomponent.c
26 index 7edce9f..822bd62 100755
27 --- a/atk/atkcomponent.c
28 +++ b/atk/atkcomponent.c
29 @@ -491,6 +491,28 @@ atk_component_grab_highlight (AtkComponent *component)
33 + * atk_component_clear_highlight:
34 + * @component: an #AtkComponent
36 + * Clears highlight for this @component.
38 + * Returns: %TRUE if successful, %FALSE otherwise.
41 +atk_component_clear_highlight (AtkComponent *component)
43 + AtkComponentIface *iface = NULL;
44 + g_return_val_if_fail (ATK_IS_COMPONENT (component), FALSE);
46 + iface = ATK_COMPONENT_GET_IFACE (component);
48 + if (iface->clear_highlight)
49 + return (iface->clear_highlight) (component);
55 * atk_component_set_extents:
56 * @component: an #AtkComponent
58 diff --git a/atk/atkcomponent.h b/atk/atkcomponent.h
59 index aa5cd3f..33096c6 100755
60 --- a/atk/atkcomponent.h
61 +++ b/atk/atkcomponent.h
62 @@ -132,6 +132,7 @@ struct _AtkComponentIface
64 gboolean (* grab_focus) (AtkComponent *component);
65 gboolean (* grab_highlight) (AtkComponent *component);
66 + gboolean (* clear_highlight) (AtkComponent *component);
67 void (* remove_focus_handler) (AtkComponent *component,
69 gboolean (* set_extents) (AtkComponent *component,
70 @@ -192,6 +193,7 @@ AtkLayer atk_component_get_layer (AtkComponent *com
71 gint atk_component_get_mdi_zorder (AtkComponent *component);
72 gboolean atk_component_grab_focus (AtkComponent *component);
73 gboolean atk_component_grab_highlight (AtkComponent *component);
74 +gboolean atk_component_clear_highlight (AtkComponent *component);
76 void atk_component_remove_focus_handler (AtkComponent *component,