allow e_comp_win_effect_set() to take a NULL effect for unsetting current effect

This commit is contained in:
Mike Blumenkrantz 2013-06-12 14:08:03 +01:00
parent 7679f20521
commit e6b22fc6bc
1 changed files with 1 additions and 2 deletions

View File

@ -5581,10 +5581,9 @@ e_comp_win_effect_set(E_Comp_Win *cw, const char *effect)
Eina_Stringshare *grp;
EINA_SAFETY_ON_NULL_RETURN(cw);
EINA_SAFETY_ON_NULL_RETURN(effect);
EINA_SAFETY_ON_TRUE_RETURN(!effect[0]);
if (!cw->shobj) return; //input window
if (!effect) effect = "none";
snprintf(buf, sizeof(buf), "e/comp/effects/%s", effect);
edje_object_file_get(cw->effect_obj, NULL, &grp);
if (!e_util_strcmp(buf, grp)) return;