elementary/elm_widget : Fix _newest_focus_order_get, it should not
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 5 Jul 2011 07:59:01 +0000 (07:59 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 5 Jul 2011 07:59:01 +0000 (07:59 +0000)
return disabled object

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@61033 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

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)
      {