[gnome-shell] a11y: allow navigation on non reactive items



commit 190f2f82ac088d07410dd192b58d975f6b7bfc6a
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Thu Aug 16 18:39:31 2012 +0200

    a11y: allow navigation on non reactive items
    
    At this moment non-reactive items are being used in
    several cases as non-sensitive, but they still
    require keyboard navigation.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=667439

 src/st/st-bin.c    |    3 +--
 src/st/st-entry.c  |    3 +--
 src/st/st-widget.c |    3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/st/st-bin.c b/src/st/st-bin.c
index 29cdccb..71c7c3a 100644
--- a/src/st/st-bin.c
+++ b/src/st/st-bin.c
@@ -195,8 +195,7 @@ st_bin_navigate_focus (StWidget         *widget,
   StBinPrivate *priv = ST_BIN (widget)->priv;
   ClutterActor *bin_actor = CLUTTER_ACTOR (widget);
 
-  if (clutter_actor_get_reactive (bin_actor) &&
-      st_widget_get_can_focus (widget))
+  if (st_widget_get_can_focus (widget))
     {
       if (from && clutter_actor_contains (bin_actor, from))
         return FALSE;
diff --git a/src/st/st-entry.c b/src/st/st-entry.c
index 32a1bec..a035cd2 100644
--- a/src/st/st-entry.c
+++ b/src/st/st-entry.c
@@ -285,8 +285,7 @@ st_entry_navigate_focus (StWidget         *widget,
 
   if (from == priv->entry)
     return FALSE;
-  else if (clutter_actor_get_reactive (CLUTTER_ACTOR (widget)) &&
-           st_widget_get_can_focus (widget))
+  else if (st_widget_get_can_focus (widget))
     {
       clutter_actor_grab_key_focus (priv->entry);
       return TRUE;
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index 7678082..8638405 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -1892,8 +1892,7 @@ st_widget_real_navigate_focus (StWidget         *widget,
   while (focus_child && clutter_actor_get_parent (focus_child) != widget_actor)
     focus_child = clutter_actor_get_parent (focus_child);
 
-  if (clutter_actor_get_reactive (widget_actor) &&
-      widget->priv->can_focus)
+  if (widget->priv->can_focus)
     {
       if (!focus_child)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]