forked from enlightenment/enlightenment
add smart callback on comp object for shadow change
This commit is contained in:
parent
6221fb7c90
commit
d9be56ad41
|
@ -217,6 +217,7 @@ _e_comp_object_shadow(E_Comp_Object *cw)
|
|||
edje_object_signal_emit(cw->frame_object ?: cw->shobj, "e,state,shadow,off", "e");
|
||||
if (cw->frame_object)
|
||||
edje_object_signal_emit(cw->shobj, "e,state,shadow,off", "e");
|
||||
evas_object_smart_callback_call(cw->smart_obj, "shadow_change", cw->ec);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -495,11 +496,15 @@ _e_comp_object_shadow_setup(E_Comp_Object *cw)
|
|||
edje_object_signal_emit(cw->shobj, "e,state,shadow,on", "e");
|
||||
else
|
||||
edje_object_signal_emit(cw->shobj, "e,state,shadow,off", "e");
|
||||
evas_object_smart_callback_call(cw->smart_obj, "shadow_change", cw->ec);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (no_shadow)
|
||||
{
|
||||
edje_object_signal_emit(cw->shobj, "e,state,shadow,off", "e");
|
||||
evas_object_smart_callback_call(cw->smart_obj, "shadow_change", cw->ec);
|
||||
}
|
||||
else
|
||||
_e_comp_object_shadow(cw);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue