elm: Don't alias in efl_part()
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 5 Jul 2017 11:30:21 +0000 (20:30 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 5 Jul 2017 11:30:21 +0000 (20:30 +0900)
Inside efl_part() we don't know whether we are dealing with a text
or content API, so we can't actually guess the proper alias.

The legacy API should have already dealt with aliasing at this point.
The EO API should not use those aliases.

src/lib/elementary/elm_layout.c

index 1f7e929..b281329 100644 (file)
@@ -2363,9 +2363,6 @@ _elm_layout_efl_part_part(const Eo *obj, Elm_Layout_Smart_Data *sd EINA_UNUSED,
    Eo *proxy;
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(part, NULL);
-   if (!_elm_layout_part_aliasing_eval(obj, &part, EINA_FALSE))
-     return NULL;
-
    ELM_WIDGET_DATA_GET_OR_RETURN((Eo *) obj, wd, NULL);
 
    // Check part type with edje_edit, as edje_object_part_object_get()