navigator: remove clera highlight
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Thu, 18 Dec 2014 13:44:21 +0000 (14:44 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Thu, 18 Dec 2014 13:44:21 +0000 (14:44 +0100)
src/navigator.c

index b6631fc..19bdbec 100644 (file)
@@ -31,8 +31,6 @@ _current_highlight_object_set(AtspiAccessible *obj)
    if (!obj)
      {
         DEBUG("Clearing highligjt object");
-        if (top_window)
-          atspi_component_clear_highlight(top_window, NULL);
         current_obj = NULL;
         return;
      }
@@ -43,8 +41,7 @@ _current_highlight_object_set(AtspiAccessible *obj)
      }
     if (obj && ATSPI_IS_COMPONENT(obj))
       {
-         atspi_component_clear_highlight(top_window, NULL);
-         atspi_component_grab_highlight(obj, NULL);
+         atspi_component_grab_highlight(atspi_accessible_get_component(obj), NULL);
          current_obj = obj;
          const ObjectCache *oc = object_cache_get(obj);