Following 'Maintenance Models Supported by GBS'
[platform/upstream/atk.git] / packaging / 0001-grab_highlight-callback-added-to-the-AtkComponentInt.patch
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
4
5 Change-Id: I3c66a9017f74403d38bd4d3b07949c3134f345cc
6 Signed-off-by: Maciej Florek <m.florek@samsung.com>
7 ---
8  atk/atkcomponent.c | 22 ++++++++++++++++++++++
9  atk/atkcomponent.h |  2 ++
10  2 files changed, 24 insertions(+)
11
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)
17  }
18  
19  /**
20 + * atk_component_grab_highlight:
21 + * @component: an #AtkComponent
22 + *
23 + * Grabs highlight for this @component.
24 + *
25 + * Returns: %TRUE if successful, %FALSE otherwise.
26 + **/
27 +gboolean
28 +atk_component_grab_highlight (AtkComponent    *component)
29 +{
30 +  AtkComponentIface *iface = NULL;
31 +  g_return_val_if_fail (ATK_IS_COMPONENT (component), FALSE);
32 +
33 +  iface = ATK_COMPONENT_GET_IFACE (component);
34 +
35 +  if (iface->grab_highlight)
36 +    return (iface->grab_highlight) (component);
37 +  else
38 +    return FALSE;
39 +}
40 +
41 +/**
42   * atk_component_set_extents:
43   * @component: an #AtkComponent
44   * @x: x coordinate
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
50                                                           gint           *width,
51                                                           gint           *height);
52    gboolean                 (* grab_focus)               (AtkComponent   *component);
53 +  gboolean                 (* grab_highlight)           (AtkComponent   *component);
54    void                     (* remove_focus_handler)      (AtkComponent  *component,
55                                                            guint         handler_id);
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);
62  G_DEPRECATED
63  void                  atk_component_remove_focus_handler   (AtkComponent    *component,
64                                                              guint           handler_id);