forked from enlightenment/efl
edje: Add beta event when an invalid part is used
This can be used for debugging, by listening to EFL_LAYOUT_EVENT_PART_INVALID Or just use EINA_LOG_LEVELS=edje:2 if you just need the logs.
This commit is contained in:
parent
eb9f35bcb9
commit
df1900b9bd
|
@ -10,9 +10,9 @@ _edje_part_invalid_call(Eo *proxy, const char *function)
|
||||||
{
|
{
|
||||||
PROXY_DATA_GET(proxy, pd);
|
PROXY_DATA_GET(proxy, pd);
|
||||||
|
|
||||||
// FIXME: Add if (!optional)
|
WRN("No such part '%s' in group '%s' in call to %s(). Ignored.",
|
||||||
WRN("No such part '%s' in group '%s' in call to %s().",
|
|
||||||
pd->part, pd->ed ? pd->ed->group : NULL, function);
|
pd->part, pd->ed ? pd->ed->group : NULL, function);
|
||||||
|
efl_event_callback_call(pd->obj, EFL_LAYOUT_EVENT_PART_INVALID, (void *) pd->part);
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
|
|
|
@ -10,6 +10,7 @@ class Efl.Canvas.Layout (Efl.Canvas.Group, Efl.File, Efl.Container, Efl.Part,
|
||||||
{
|
{
|
||||||
[[Edje object class]]
|
[[Edje object class]]
|
||||||
legacy_prefix: edje_object;
|
legacy_prefix: edje_object;
|
||||||
|
event_prefix: efl_layout;
|
||||||
data: Edje;
|
data: Edje;
|
||||||
methods {
|
methods {
|
||||||
@property animation {
|
@property animation {
|
||||||
|
@ -90,6 +91,10 @@ class Efl.Canvas.Layout (Efl.Canvas.Group, Efl.File, Efl.Container, Efl.Part,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
events {
|
||||||
|
part,invalid @beta: string; [[Emitted when trying to use an invalid part.
|
||||||
|
The value passed is the part name.]]
|
||||||
|
}
|
||||||
implements {
|
implements {
|
||||||
Efl.Gfx.visible { set; }
|
Efl.Gfx.visible { set; }
|
||||||
Efl.Gfx.position { set; }
|
Efl.Gfx.position { set; }
|
||||||
|
|
Loading…
Reference in New Issue