clear_highlight callback added to the AtkComponentInterface
authorMaciej Florek <m.florek@samsung.com>
Mon, 8 Jun 2015 16:09:33 +0000 (18:09 +0200)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Wed, 21 Sep 2016 14:25:58 +0000 (16:25 +0200)
Change-Id: I8aa497f82998d862e2fb48cc643574d85f0c49e6
Signed-off-by: Maciej Florek <m.florek@samsung.com>
Conflicts:
atk/atk.symbols
atk/atkcomponent.h

atk/atkcomponent.c
atk/atkcomponent.h

index 0c4704d..53927c8 100755 (executable)
@@ -491,6 +491,28 @@ atk_component_grab_highlight (AtkComponent    *component)
 }
 
 /**
+ * atk_component_clear_highlight:
+ * @component: an #AtkComponent
+ *
+ * Clears highlight for this @component.
+ *
+ * Returns: %TRUE if successful, %FALSE otherwise.
+ **/
+gboolean
+atk_component_clear_highlight (AtkComponent    *component)
+{
+  AtkComponentIface *iface = NULL;
+  g_return_val_if_fail (ATK_IS_COMPONENT (component), FALSE);
+
+  iface = ATK_COMPONENT_GET_IFACE (component);
+
+  if (iface->clear_highlight)
+    return (iface->clear_highlight) (component);
+  else
+    return FALSE;
+}
+
+/**
  * atk_component_set_extents:
  * @component: an #AtkComponent
  * @x: x coordinate
index a077828..f1193f8 100755 (executable)
@@ -132,6 +132,7 @@ struct _AtkComponentIface
                                                          gint           *height);
   gboolean                 (* grab_focus)               (AtkComponent   *component);
   gboolean                 (* grab_highlight)           (AtkComponent   *component);
+  gboolean                 (* clear_highlight)          (AtkComponent   *component);
   void                     (* remove_focus_handler)      (AtkComponent  *component,
                                                           guint         handler_id);
   gboolean                 (* set_extents)      (AtkComponent   *component,
@@ -200,6 +201,8 @@ ATK_AVAILABLE_IN_ALL
 gboolean              atk_component_grab_focus             (AtkComponent    *component);
 ATK_AVAILABLE_IN_ALL
 gboolean              atk_component_grab_highlight         (AtkComponent    *component);
+ATK_AVAILABLE_IN_ALL
+gboolean              atk_component_clear_highlight        (AtkComponent    *component);
 ATK_DEPRECATED_IN_2_10
 void                  atk_component_remove_focus_handler   (AtkComponent    *component,
                                                             guint           handler_id);