grab_highlight callback added to the AtkComponentInterface 05/67105/1
authorMaciej Florek <m.florek@samsung.com>
Wed, 27 May 2015 08:34:37 +0000 (10:34 +0200)
committerShinwoo Kim <cinoo.kim@samsung.com>
Mon, 25 Apr 2016 07:58:35 +0000 (16:58 +0900)
Change-Id: I3c66a9017f74403d38bd4d3b07949c3134f345cc
Signed-off-by: Maciej Florek <m.florek@samsung.com>
atk/atkcomponent.c
atk/atkcomponent.h

index 2e5a19d..7edce9f 100755 (executable)
@@ -469,6 +469,28 @@ atk_component_grab_focus (AtkComponent    *component)
 }
 
 /**
+ * atk_component_grab_highlight:
+ * @component: an #AtkComponent
+ *
+ * Grabs highlight for this @component.
+ *
+ * Returns: %TRUE if successful, %FALSE otherwise.
+ **/
+gboolean
+atk_component_grab_highlight (AtkComponent    *component)
+{
+  AtkComponentIface *iface = NULL;
+  g_return_val_if_fail (ATK_IS_COMPONENT (component), FALSE);
+
+  iface = ATK_COMPONENT_GET_IFACE (component);
+
+  if (iface->grab_highlight)
+    return (iface->grab_highlight) (component);
+  else
+    return FALSE;
+}
+
+/**
  * atk_component_set_extents:
  * @component: an #AtkComponent
  * @x: x coordinate
index 541de53..aa5cd3f 100755 (executable)
@@ -131,6 +131,7 @@ struct _AtkComponentIface
                                                          gint           *width,
                                                          gint           *height);
   gboolean                 (* grab_focus)               (AtkComponent   *component);
+  gboolean                 (* grab_highlight)           (AtkComponent   *component);
   void                     (* remove_focus_handler)      (AtkComponent  *component,
                                                           guint         handler_id);
   gboolean                 (* set_extents)      (AtkComponent   *component,
@@ -190,6 +191,7 @@ void                  atk_component_get_size               (AtkComponent    *com
 AtkLayer              atk_component_get_layer              (AtkComponent    *component);
 gint                  atk_component_get_mdi_zorder         (AtkComponent    *component);
 gboolean              atk_component_grab_focus             (AtkComponent    *component);
+gboolean              atk_component_grab_highlight         (AtkComponent    *component);
 G_DEPRECATED
 void                  atk_component_remove_focus_handler   (AtkComponent    *component,
                                                             guint           handler_id);