clear_highlight callback added to the AtkComponentInterface 07/67107/1
authorMaciej Florek <m.florek@samsung.com>
Mon, 8 Jun 2015 16:09:33 +0000 (18:09 +0200)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 25 Apr 2016 07:59:41 +0000 (16:59 +0900)
Change-Id: I8aa497f82998d862e2fb48cc643574d85f0c49e6
Signed-off-by: Maciej Florek <m.florek@samsung.com>
atk/atk.symbols
atk/atkcomponent.c
atk/atkcomponent.h

index 7ac27b5..09e9f40 100644 (file)
@@ -24,6 +24,7 @@
        atk_component_get_type
        atk_component_grab_focus
        atk_component_grab_highlight
+       atk_component_clear_highlight
        atk_component_ref_accessible_at_point
        atk_component_remove_focus_handler
        atk_component_set_extents
index 7edce9f..822bd62 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 aa5cd3f..33096c6 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,
@@ -192,6 +193,7 @@ AtkLayer              atk_component_get_layer              (AtkComponent    *com
 gint                  atk_component_get_mdi_zorder         (AtkComponent    *component);
 gboolean              atk_component_grab_focus             (AtkComponent    *component);
 gboolean              atk_component_grab_highlight         (AtkComponent    *component);
+gboolean              atk_component_clear_highlight        (AtkComponent    *component);
 G_DEPRECATED
 void                  atk_component_remove_focus_handler   (AtkComponent    *component,
                                                             guint           handler_id);