handle desklock show animation unblocking in lokker

This commit is contained in:
Mike Blumenkrantz 2017-01-06 12:56:22 -05:00 committed by Derek Foreman
parent 1c4ee0028c
commit dda64c8f12
1 changed files with 11 additions and 0 deletions

View File

@ -335,6 +335,14 @@ _text_login_box_add(Lokker_Popup *lp)
evas_object_clip_set(lp->login_box, lp->zone->bg_clip_object);
}
static void
_lokker_cb_show_done(void *data, Evas_Object *obj EINA_UNUSED, const char *sig EINA_UNUSED, const char *src EINA_UNUSED)
{
Lokker_Popup *lp = data;
e_desklock_zone_block_set(lp->zone, 1);
}
static void
_lokker_popup_add(E_Zone *zone)
{
@ -402,6 +410,9 @@ _lokker_popup_add(E_Zone *zone)
s = edje_object_data_get(lp->bg_object, "show_signal");
lp->show_anim = s && (atoi(s) == 1);
e_desklock_zone_block_set(zone, !lp->show_anim);
if (lp->show_anim)
edje_object_signal_callback_add(lp->bg_object, "e,action,show,done", "e",
_lokker_cb_show_done, lp);
s = edje_object_data_get(lp->bg_object, "hide_signal");
lp->hide_anim = s && (atoi(s) == 1);
}