1 From: Maciej Florek <m.florek@samsung.com>
2 Date: Wed, 27 May 2015 10:34:37 +0200
3 Subject: grab_highlight callback added to the AtkComponentInterface
5 Change-Id: I3c66a9017f74403d38bd4d3b07949c3134f345cc
6 Signed-off-by: Maciej Florek <m.florek@samsung.com>
8 atk/atkcomponent.c | 22 ++++++++++++++++++++++
9 atk/atkcomponent.h | 2 ++
10 2 files changed, 24 insertions(+)
12 diff --git a/atk/atkcomponent.c b/atk/atkcomponent.c
13 index 2e5a19d..7edce9f 100755
14 --- a/atk/atkcomponent.c
15 +++ b/atk/atkcomponent.c
16 @@ -469,6 +469,28 @@ atk_component_grab_focus (AtkComponent *component)
20 + * atk_component_grab_highlight:
21 + * @component: an #AtkComponent
23 + * Grabs highlight for this @component.
25 + * Returns: %TRUE if successful, %FALSE otherwise.
28 +atk_component_grab_highlight (AtkComponent *component)
30 + AtkComponentIface *iface = NULL;
31 + g_return_val_if_fail (ATK_IS_COMPONENT (component), FALSE);
33 + iface = ATK_COMPONENT_GET_IFACE (component);
35 + if (iface->grab_highlight)
36 + return (iface->grab_highlight) (component);
42 * atk_component_set_extents:
43 * @component: an #AtkComponent
45 diff --git a/atk/atkcomponent.h b/atk/atkcomponent.h
46 index 541de53..aa5cd3f 100755
47 --- a/atk/atkcomponent.h
48 +++ b/atk/atkcomponent.h
49 @@ -131,6 +131,7 @@ struct _AtkComponentIface
52 gboolean (* grab_focus) (AtkComponent *component);
53 + gboolean (* grab_highlight) (AtkComponent *component);
54 void (* remove_focus_handler) (AtkComponent *component,
56 gboolean (* set_extents) (AtkComponent *component,
57 @@ -190,6 +191,7 @@ void atk_component_get_size (AtkComponent *com
58 AtkLayer atk_component_get_layer (AtkComponent *component);
59 gint atk_component_get_mdi_zorder (AtkComponent *component);
60 gboolean atk_component_grab_focus (AtkComponent *component);
61 +gboolean atk_component_grab_highlight (AtkComponent *component);
63 void atk_component_remove_focus_handler (AtkComponent *component,