Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/ibar


Modified Files:
        e_mod_main.c 


Log Message:


use startup notify... see ibar in default.

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/ibar/e_mod_main.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -3 -r1.67 -r1.68
--- e_mod_main.c        30 Aug 2005 01:42:56 -0000      1.67
+++ e_mod_main.c        14 Sep 2005 06:39:59 -0000      1.68
@@ -406,10 +406,56 @@
               }
             break;
           case E_APP_EXEC:
+            if (e_app_is_parent(ib->apps, a))
+              {
+                 IBar_Icon *ic;
+                 
+                 ic = _ibar_icon_find(ibb, a);
+                 if (ic)
+                   {
+                      Evas_List *l;
+                      
+                      if (a->startup_notify)
+                        {
+                           edje_object_signal_emit(ic->icon_object, "start", 
"");
+                           for (ll = ic->extra_icons; ll; ll = ll->next) 
edje_object_signal_emit(ll->data, "start", "");
+                           edje_object_signal_emit(ic->bg_object, "start", "");
+                           edje_object_signal_emit(ic->overlay_object, 
"start", "");
+                           edje_object_signal_emit(ic->ibb->overlay_object, 
"start", "");
+                        }
+                      else
+                        {
+                           edje_object_signal_emit(ic->icon_object, "exec", 
"");
+                           for (ll = ic->extra_icons; ll; ll = ll->next) 
edje_object_signal_emit(ll->data, "exec", "");
+                           edje_object_signal_emit(ic->bg_object, "exec", "");
+                           edje_object_signal_emit(ic->overlay_object, "exec", 
"");
+                           edje_object_signal_emit(ic->ibb->overlay_object, 
"exec", "");
+                        }
+                   }
+              }
             break;
           case E_APP_READY:
-            break;
+          case E_APP_READY_EXPIRE:
           case E_APP_EXIT:
+            if (e_app_is_parent(ib->apps, a))
+              {
+                 if (a->startup_notify)
+                   {
+                      IBar_Icon *ic;
+                      
+                      ic = _ibar_icon_find(ibb, a);
+                      if (ic)
+                        {
+                           Evas_List *l;
+                           
+                           edje_object_signal_emit(ic->icon_object, "stop", 
"");
+                           for (ll = ic->extra_icons; ll; ll = ll->next) 
edje_object_signal_emit(ll->data, "stop", "");
+                           edje_object_signal_emit(ic->bg_object, "stop", "");
+                           edje_object_signal_emit(ic->overlay_object, "stop", 
"");
+                           edje_object_signal_emit(ic->ibb->overlay_object, 
"stop", "");
+                        }
+                   }
+              }
             break;
           default:
             break;




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to