elm/list: avoid erroring on non-elm item contents
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 22 Apr 2020 17:13:57 +0000 (13:13 -0400)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 5 May 2020 21:28:21 +0000 (06:28 +0900)
putting raw evas and edje objects in here has historically been done,
so handle it without errors

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11747

src/lib/elementary/elm_list.c

index 531ce642b5775da24cfaf2a8fadff3bd49d8bfee..20b380be3e0163392afc83ad09e5d25a7b815046 100644 (file)
@@ -2392,8 +2392,13 @@ _item_new(Evas_Object *obj,
           (it->icon, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _size_hints_changed_cb,
           obj);
         //TIZEN_ONLY(20180607): Restore legacy focus
-        //elm_widget_tree_unfocusable_set(it->icon, EINA_TRUE);
-        //
+        /*
+        if (elm_widget_is(it->icon))
+          {
+             efl_access_object_access_type_set(it->icon, EFL_ACCESS_TYPE_DISABLED);
+             elm_widget_tree_unfocusable_set(it->icon, EINA_TRUE);
+          }
+        */
      }
    if (it->end)
      {
@@ -2402,8 +2407,13 @@ _item_new(Evas_Object *obj,
           (it->end, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _size_hints_changed_cb,
           obj);
         //TIZEN_ONLY(20180607): Restore legacy focus
-        //elm_widget_tree_unfocusable_set(it->end, EINA_TRUE);
-        //
+        /*
+        if (elm_widget_is(it->end))
+          {
+             efl_access_object_access_type_set(it->end, EFL_ACCESS_TYPE_DISABLED);
+             elm_widget_tree_unfocusable_set(it->end, EINA_TRUE);
+          }
+        */
      }
 
    if (_elm_atspi_enabled())