elementary/elm_widget : When elm_widget_sub_object_del is called with
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 19 Nov 2011 03:47:27 +0000 (03:47 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 19 Nov 2011 03:47:27 +0000 (03:47 +0000)
focused sub-object, focus should be reverted back to the latest focused object.

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

src/lib/elm_widget.c

index c8de225..532c69b 100644 (file)
@@ -994,7 +994,11 @@ elm_widget_sub_object_del(Evas_Object *obj,
           }
         else
           sd->subobjs = eina_list_remove(sd->subobjs, sobj);
-        if (elm_widget_focus_get(sobj)) _unfocus_parents(obj);
+        if (elm_widget_focus_get(sobj))
+          {
+             elm_widget_tree_unfocusable_set(sobj, EINA_TRUE);
+             elm_widget_tree_unfocusable_set(sobj, EINA_FALSE);
+          }
         if ((sd->child_can_focus) && (_is_focusable(sobj)))
           {
              Evas_Object *subobj;