elementary/elm_widget : Fix _newest_focus_order_get, it should not
authorWooHyun Jung <woohyun0705@gmail.com>
Tue, 5 Jul 2011 07:59:01 +0000 (07:59 +0000)
committerWooHyun Jung <woohyun0705@gmail.com>
Tue, 5 Jul 2011 07:59:01 +0000 (07:59 +0000)
return disabled object

SVN revision: 61033

src/lib/elm_widget.c

index ad5d03b..4acbc09 100644 (file)
@@ -2784,7 +2784,10 @@ _newest_focus_order_get(Evas_Object  *obj,
    Evas_Object *child, *ret, *best;
 
    API_ENTRY return NULL;
-   if (!evas_object_visible_get(obj)) return NULL;
+
+   if ((!evas_object_visible_get(obj)) || (elm_widget_disabled_get(obj)))
+     return NULL;
+
    best = NULL;
    if (*newest_focus_order < sd->focus_order)
      {