set zone-based name on lokker comp objects

allows identification of desklock objects in events
This commit is contained in:
Mike Blumenkrantz 2016-01-15 19:24:29 -05:00
parent f12b6b9385
commit de59970690
1 changed files with 6 additions and 0 deletions

View File

@ -396,6 +396,12 @@ _lokker_popup_add(E_Zone *zone)
evas_object_resize(lp->bg_object, zone->w, zone->h);
evas_object_show(lp->bg_object);
lp->comp_object = e_comp_object_util_add(lp->bg_object, 0);
{
char buf[1024];
snprintf(buf, sizeof(buf), "desklock.%d", zone->id);
evas_object_name_set(lp->comp_object, buf);
}
evas_object_layer_set(lp->comp_object, E_LAYER_DESKLOCK);
evas_object_clip_set(lp->comp_object, lp->zone->bg_clip_object);