forked from enlightenment/efl
efl_ui_calendar: Wrap calls to edje_object_part_object_get with
Summary: freeze/thaw @ref T6884 Depends on D6411 Reviewers: zmike, ManMower Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6884 Differential Revision: https://phab.enlightenment.org/D6412
This commit is contained in:
parent
c1f3cf2a47
commit
5a54a3d357
|
@ -261,7 +261,7 @@ _access_calendar_item_register(Evas_Object *obj)
|
|||
static void
|
||||
_access_calendar_spinner_register(Evas_Object *obj)
|
||||
{
|
||||
Evas_Object *po;
|
||||
Evas_Object *po, *o;
|
||||
Elm_Access_Info *ai;
|
||||
EFL_UI_CALENDAR_DATA_GET(obj, sd);
|
||||
|
||||
|
@ -285,8 +285,10 @@ _access_calendar_spinner_register(Evas_Object *obj)
|
|||
ai = _elm_access_info_get(sd->year_access);
|
||||
_elm_access_text_set(ai, ELM_ACCESS_TYPE, E_("calendar year"));
|
||||
|
||||
po = (Evas_Object *)edje_object_part_object_get
|
||||
(elm_layout_edje_get(obj), "month_text");
|
||||
o = elm_layout_edje_get(obj);
|
||||
edje_object_freeze(o);
|
||||
po = (Evas_Object *)edje_object_part_object_get(o, "month_text");
|
||||
edje_object_thaw(o);
|
||||
evas_object_pass_events_set(po, EINA_FALSE);
|
||||
}
|
||||
|
||||
|
@ -1282,13 +1284,15 @@ EOLIAN static void
|
|||
_efl_ui_calendar_item_day_number_set(Eo *obj, Efl_Ui_Calendar_Item_Data *pd, int i)
|
||||
{
|
||||
char pname[14];
|
||||
Evas_Object *po;
|
||||
Evas_Object *po, *o;
|
||||
|
||||
pd->v = i;
|
||||
snprintf(pname, sizeof(pname), "cit_%i.access", i);
|
||||
|
||||
po = (Evas_Object *)edje_object_part_object_get
|
||||
(elm_layout_edje_get(efl_parent_get(obj)), pname);
|
||||
o = elm_layout_edje_get(efl_parent_get(obj));
|
||||
edje_object_freeze(o);
|
||||
po = (Evas_Object *)edje_object_part_object_get(o, pname);
|
||||
edje_object_thaw(o);
|
||||
|
||||
if (_elm_config->access_mode != ELM_ACCESS_MODE_ON)
|
||||
pd->part = po;
|
||||
|
|
Loading…
Reference in New Issue