elm_colorselector: fix improperly named API theme parts

Summary:
API parts require namespacing, these parts have been namespaced with
compatibility code added to handle legacy naming

Reviewers: cedric, Hermet, devilhorns, stephenmhouston

Subscribers: segfaultxavi, Hermet, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6213
This commit is contained in:
Mike Blumenkrantz 2018-06-20 11:33:01 -05:00 committed by Stephen 'Okra' Houston
parent ff8c383649
commit 4a2b411287
2 changed files with 4 additions and 2 deletions

View File

@ -660,7 +660,8 @@ group { name: "elm/colorselector/item/default";
color: 255 255 255 64;
}
}
part { name: "color_obj"; type: SWALLOW;
alias: "color_obj" "elm.swallow.color_obj";
part { name: "elm.swallow.color_obj"; type: SWALLOW;
clip_to: "clipper";
description { state: "default" 0.0;
rel1.offset: 3 3;

View File

@ -1796,7 +1796,8 @@ _elm_color_item_efl_object_constructor(Eo *eo_item, Elm_Color_Item_Data *item)
(item->color_obj, EVAS_CALLBACK_MOUSE_MOVE, _on_color_moved, item);
evas_object_event_callback_add
(item->color_obj, EVAS_CALLBACK_MOUSE_UP, _on_color_released, item);
elm_object_part_content_set(VIEW(item), "color_obj", item->color_obj);
if (!elm_layout_content_set(VIEW(item), "elm.swallow.color_obj", item->color_obj))
elm_layout_content_set(VIEW(item), "color_obj", item->color_obj);
_item_sizing_eval(item);
evas_object_show(VIEW(item));