Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        iconify.c 


Log Message:
Don't show iconbox animation if app is initially iconified.
Play iconify sound only for selected iconbox.

===================================================================
RCS file: /cvs/e/e16/e/src/iconify.c,v
retrieving revision 1.232
retrieving revision 1.233
diff -u -3 -r1.232 -r1.233
--- iconify.c   24 May 2008 18:14:57 -0000      1.232
+++ iconify.c   11 Jul 2008 19:30:48 -0000      1.233
@@ -298,13 +298,13 @@
 {
    Container          *ct;
 
-   SoundPlay("SOUND_ICONIFY");
-
    ct = SelectIconboxForEwin(ewin);
    if (!ct)
       return;
 
-   if (ct->anim_mode && !ewin->state.showingdesk)
+   SoundPlay("SOUND_ICONIFY");
+
+   if (EoIsShown(ewin) && ct->anim_mode && !ewin->state.showingdesk)
       IB_Animate(ct, 1, ewin);
 
    IconboxObjEwinAdd(ct, ewin);
@@ -315,11 +315,11 @@
 {
    Container          *ct;
 
-   SoundPlay("SOUND_DEICONIFY");
-
    ct = SelectIconboxForEwin(ewin);
    if (!ct)
       return;
+
+   SoundPlay("SOUND_DEICONIFY");
 
    if (ct->anim_mode && !ewin->state.showingdesk)
       IB_Animate(ct, 0, ewin);



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to