efl_ui/layout: use better check for determining whether to defer signals

Summary:
a layout (not layout_base) should not defer signals. theme groups loaded
by a layout widget can be anything, and are not subject to the versioning
requirements that efl widgets have
Depends on D10055

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10192
This commit is contained in:
Mike Blumenkrantz 2019-09-26 17:03:28 +02:00 committed by Xavi Artigas
parent 79aa86df5a
commit a21dacbad6
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ _signals_emit(Efl_Ui_Layout_Data *sd,
use = buf2;
snprintf(buf, sizeof(buf), "efl,state,%s,%s", type, set ? "set" : "unset");
snprintf(buf2, sizeof(buf2), "efl,%s,%s", type, set ? "set" : "unset");
if (efl_finalized_get(sd->obj))
if (efl_isa(sd->obj, EFL_UI_LAYOUT_CLASS) || efl_finalized_get(sd->obj))
efl_layout_signal_emit(sd->obj, use, "efl");
else
_defer_version_signal(sd, eina_stringshare_add(buf), eina_stringshare_add(buf2), 123);