forked from enlightenment/enlightenment
handle desklock show animation unblocking in lokker
This commit is contained in:
parent
1c4ee0028c
commit
dda64c8f12
|
@ -335,6 +335,14 @@ _text_login_box_add(Lokker_Popup *lp)
|
||||||
evas_object_clip_set(lp->login_box, lp->zone->bg_clip_object);
|
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
|
static void
|
||||||
_lokker_popup_add(E_Zone *zone)
|
_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");
|
s = edje_object_data_get(lp->bg_object, "show_signal");
|
||||||
lp->show_anim = s && (atoi(s) == 1);
|
lp->show_anim = s && (atoi(s) == 1);
|
||||||
e_desklock_zone_block_set(zone, !lp->show_anim);
|
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");
|
s = edje_object_data_get(lp->bg_object, "hide_signal");
|
||||||
lp->hide_anim = s && (atoi(s) == 1);
|
lp->hide_anim = s && (atoi(s) == 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue