discomfitor pushed a commit to branch master.

commit e6b22fc6bc5b5581aa3347bb21b9d6f1d90a9908
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Jun 12 14:08:03 2013 +0100

    allow e_comp_win_effect_set() to take a NULL effect for unsetting current 
effect
---
 src/bin/e_comp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 46fe4c9..c592e8d 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -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;

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to