forked from enlightenment/efl
elm_interface_scrollable: prevent calling APIs with NULL edje object
Summary: Is is unnecessary to call edje_object_ functions if `edje_obj` is NULL. Also, It prevents printing 6 eo warnings ``` WRN<30343>:eo ../src/lib/eo/eo.c:644 _efl_object_call_resolve() NULL passed to function efl_layout_signal_emit(). ``` Test Plan: `EINA_LOG_LEVELS=eo:2 elementary_test` `EINA_LOG_LEVELS=eo:3 elementary_test -to focus` Reviewers: bu5hm4n, Jaehyun_Cho, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11315
This commit is contained in:
parent
6981d09f9b
commit
2170a99388
|
@ -4032,6 +4032,9 @@ _elm_interface_scrollable_reset_signals(Eo *obj EINA_UNUSED, Elm_Scrollable_Smar
|
|||
{
|
||||
sid->go_up = sid->go_down = sid->go_right = sid->go_left = EINA_FALSE;
|
||||
|
||||
if (!sid->edje_obj)
|
||||
return;
|
||||
|
||||
edje_object_signal_emit(sid->edje_obj, "elm,action,hide,up", "elm");
|
||||
edje_object_signal_emit(sid->edje_obj, "elm,action,hide,down", "elm");
|
||||
edje_object_signal_emit(sid->edje_obj, "elm,action,hide,right", "elm");
|
||||
|
|
Loading…
Reference in New Issue