devilhorns pushed a commit to branch master.

commit 7955818e255abe1a359f27cee8061058d0529d0a
Author: Chris Michael <[email protected]>
Date:   Fri May 24 11:01:02 2013 +0100

    Add randr theme support for primary outputs
    
    NB: Someone may want to retheme this....
    
    Signed-off-by: Chris Michael <[email protected]>
---
 data/themes/edc/randr.edc | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/data/themes/edc/randr.edc b/data/themes/edc/randr.edc
index 3eb8f69..0232daa 100644
--- a/data/themes/edc/randr.edc
+++ b/data/themes/edc/randr.edc
@@ -98,6 +98,19 @@ group { name: "e/conf/randr/main/frame";
       public refresh_open;
    }
    parts {
+      part { name: "primary"; type: IMAGE;
+         description { state: "default" 0.0;
+            image.normal: "glow_small.png";
+            image.border: 7 7 7 7;
+            rel1.offset: -4 -4;
+            rel2.offset: 3 3;
+            visible: 0;
+         }
+         description { state: "on" 0.0;
+            inherit: "default" 0.0;
+            visible: 1;
+         }
+      }
       part { name: "base";
          description { state: "default" 0.0;
             image.normal: "screen_bg.png";
@@ -533,6 +546,16 @@ group { name: "e/conf/randr/main/frame";
          target: "e.event.rotate";
       }
       program {
+         signal: "e,state,primary,off"; source: "e";
+         action: STATE_SET "default" 0.0;
+         target: "primary";
+      }
+      program {
+         signal: "e,state,primary,on"; source: "e";
+         action: STATE_SET "on" 0.0;
+         target: "primary";
+      }
+      program {
          signal: "mouse,in"; source: "e.event.resize";
          action: SIGNAL_EMIT "e,action,resize,in" "e";
       }

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

Reply via email to