Following 'Maintenance Models Supported by GBS'
[platform/upstream/atk.git] / packaging / 0003-clear_highlight-callback-added-to-the-AtkComponentIn.patch
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
4
5 Change-Id: I8aa497f82998d862e2fb48cc643574d85f0c49e6
6 Signed-off-by: Maciej Florek <m.florek@samsung.com>
7 ---
8  atk/atk.symbols    |  1 +
9  atk/atkcomponent.c | 22 ++++++++++++++++++++++
10  atk/atkcomponent.h |  2 ++
11  3 files changed, 25 insertions(+)
12
13 diff --git a/atk/atk.symbols b/atk/atk.symbols
14 index 7ac27b5..09e9f40 100644
15 --- a/atk/atk.symbols
16 +++ b/atk/atk.symbols
17 @@ -24,6 +24,7 @@
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)
30  }
31  
32  /**
33 + * atk_component_clear_highlight:
34 + * @component: an #AtkComponent
35 + *
36 + * Clears highlight for this @component.
37 + *
38 + * Returns: %TRUE if successful, %FALSE otherwise.
39 + **/
40 +gboolean
41 +atk_component_clear_highlight (AtkComponent    *component)
42 +{
43 +  AtkComponentIface *iface = NULL;
44 +  g_return_val_if_fail (ATK_IS_COMPONENT (component), FALSE);
45 +
46 +  iface = ATK_COMPONENT_GET_IFACE (component);
47 +
48 +  if (iface->clear_highlight)
49 +    return (iface->clear_highlight) (component);
50 +  else
51 +    return FALSE;
52 +}
53 +
54 +/**
55   * atk_component_set_extents:
56   * @component: an #AtkComponent
57   * @x: x coordinate
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
63                                                           gint           *height);
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,
68                                                            guint         handler_id);
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);
75  G_DEPRECATED
76  void                  atk_component_remove_focus_handler   (AtkComponent    *component,
77                                                              guint           handler_id);