elementary/elm_widget : When elm_widget_sub_object_del is called with
authorWooHyun Jung <woohyun0705@gmail.com>
Sat, 19 Nov 2011 03:47:27 +0000 (03:47 +0000)
committerWooHyun Jung <woohyun0705@gmail.com>
Sat, 19 Nov 2011 03:47:27 +0000 (03:47 +0000)
focused sub-object, focus should be reverted back to the latest focused object.

SVN revision: 65399

src/lib/elm_widget.c

index c8de2258d27f1a4c294f29e5c329737850054f3c..532c69b85d22a4e6281bb7acb48ac33c00bd7c96 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;