layout: Fix eo API error while running "Genlist 7" in elementary_test.
authorAmitesh Singh <amitesh.sh@samsung.com>
Wed, 1 Jul 2015 04:08:32 +0000 (09:38 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Wed, 1 Jul 2015 04:17:06 +0000 (09:47 +0530)
In case of naviframe, resize_obj is not edje.

Steps to reproduce:
1. elementary_test
2. Open "Genlist 7" sample.
3. Switch focus between windows ("elementary_test" <---> "Genlist 7").

Eo Errors:
ERR<8720>:eo lib/eo/eo.c:678 _eo_call_resolve() in lib/edje/edje_object.eo.c:430: func 'edje_obj_message_signal_process' (733) could not be resolved for class 'Elm_Layout'.

@fix
Resolves: T2534

src/lib/elm_layout.c

index e85efd6..f089510 100644 (file)
@@ -421,7 +421,8 @@ _elm_layout_elm_widget_on_focus(Eo *obj, Elm_Layout_Smart_Data *_pd EINA_UNUSED)
         if (_elm_config->atspi_mode && !elm_widget_child_can_focus_get(obj))
           elm_interface_atspi_accessible_state_changed_signal_emit(obj, ELM_ATSPI_STATE_FOCUSED, EINA_FALSE);
      }
-   edje_object_message_signal_process(wd->resize_obj);
+   if (eo_isa(wd->resize_obj, EDJE_OBJECT_CLASS))
+     edje_object_message_signal_process(wd->resize_obj);
 
    return EINA_TRUE;
 }