Enlightenment CVS committal

Author  : urandom
Project : e17
Module  : apps/e

Dir     : e17/apps/e/data/themes


Modified Files:
        default_ibox.edc default_pager.edc 


Log Message:
icons in the ibox and pager will pulsate if urgent

===================================================================
RCS file: /cvs/e/e17/apps/e/data/themes/default_ibox.edc,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- default_ibox.edc    10 Oct 2006 13:36:31 -0000      1.6
+++ default_ibox.edc    15 Jan 2007 04:03:08 -0000      1.7
@@ -115,6 +115,9 @@
    data {
       //        item: "item_list", "item item2 item3";
    }
+   script {
+      public urgent;
+   }
    parts {
       part {
         name:          "base";
@@ -287,6 +290,11 @@
         source:  "";
         action:  STATE_SET "default" 0.0;
         target:  "background";
+        script {
+            if (get_int(urgent) == 1) {
+                run_program(PROGRAM:"go_urgent");
+            }
+        }
       }
       program {
         name:    "go_big";
@@ -324,6 +332,60 @@
         signal:  "e,action,stop";
         source:  "e";
 //      action:  SIGNAL_EMIT "active" 0.0;
+      }
+      program {
+        name: "init";
+        signal: "load";
+        source: "";
+        script {
+           set_int(urgent, 0);
+        }
+      }
+      program {
+        name: "set_urgent";
+        signal: "e,state,urgent";
+        source: "e";
+        script {
+           set_int(urgent, 1);
+        }
+      }
+      program {
+        name:    "go_urgent";
+        signal:  "e,state,urgent";
+        source:  "e";
+        action:  STATE_SET "visible" 0.0;
+        target:  "background";
+        after:   "go_urgent2";
+      }
+      program {
+        name:    "go_urgent2";
+        action:  STATE_SET "hidden" 0.0;
+        transition: LINEAR 0.5;
+        target:  "background";
+        after:   "go_urgent";
+      }
+      program {
+        name: "unset_urgent";
+        signal: "e,state,not_urgent";
+        source: "e";
+        script {
+           set_int(urgent, 0);
+        }
+      }
+      program {
+        name:    "go_unurgent";
+        signal:  "e,state,not_urgent";
+        source:  "e";
+        action:  ACTION_STOP;
+        target:  "go_urgent";
+        target:  "go_urgent2";
+        after:   "go_unurgent2";
+      }
+      program {
+        name:    "go_unurgent2";
+        action:  STATE_SET "default" 0.0;
+        transition: SINUSOIDAL 0.3;
+        target:  "background";
       }
    }
 }
===================================================================
RCS file: /cvs/e/e17/apps/e/data/themes/default_pager.edc,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- default_pager.edc   10 Oct 2006 13:36:31 -0000      1.32
+++ default_pager.edc   15 Jan 2007 04:03:08 -0000      1.33
@@ -638,6 +638,17 @@
               border: 6 13 7 5;
            }
         }
+        description {
+           state: "urgent" 0.0;
+           inherit: "default" 0.0;
+           rel1 {
+              relative: -0.5  -0.5;
+           }
+           rel2 {
+              relative: 1.5  1.5;
+           }
+           color: 255 255 255 0;
+        }
       }
       part {
         name:           "icon";
@@ -657,6 +668,38 @@
            }
            color:       0 0 0 0;
         }
+      }
+   }
+   programs {
+      program {
+        name:    "go_urgent_pre";
+        signal:  "e,state,urgent";
+        source:  "e";
+        action:  STATE_SET "default" 0.0;
+        target:  "overlay";
+        after:   "go_urgent";
+      }
+      program {
+        name:    "go_urgent";
+        action:  STATE_SET "urgent" 0.0;
+        transition: LINEAR 0.5;
+        target:  "overlay";
+        after:   "go_urgent_pre";
+      }
+      program {
+        name:    "go_unurgent";
+        signal:  "e,state,not_urgent";
+        source:  "e";
+        action:  ACTION_STOP;
+        target:  "go_urgent_pre";
+        target:  "go_urgent";
+        after:   "go_unurgent2";
+      } 
+      program {
+        name:    "go_unurgent2";
+        action:  STATE_SET "default" 0.0;
+        transition: SINUSOIDAL 0.3;
+        target:  "overlay";
       }
    }
 }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to