Add a disabled state to the indicator event rectangle
authorChris Michael <cp.michael@samsung.com>
Fri, 2 Aug 2013 10:06:02 +0000 (11:06 +0100)
committerChris Michael <cp.michael@samsung.com>
Fri, 2 Aug 2013 10:07:52 +0000 (11:07 +0100)
NB: This is so that the indicator mouse events can be disabled, thus
not allowing Silly people to turn off their Only single monitor.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
data/themes/edc/randr.edc

index 0232daa..5e2a2f5 100644 (file)
@@ -426,9 +426,12 @@ group { name: "e/conf/randr/main/frame";
          description { state: "default" 0.0;
             color: 0 0 0 0;
             max: 15 15;
-//            max: 21 21;
             align: 0.0 1.0;
          }
+         description { state: "disabled" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "e.event.resize"; type: RECT;
          description { state: "default" 0.0;
@@ -556,6 +559,16 @@ group { name: "e/conf/randr/main/frame";
          target: "primary";
       }
       program {
+         signal: "e,state,indicator,enabled"; source: "e";
+         action: STATE_SET "default" 0.0;
+         target: "e.event.indicator";
+      }
+      program {
+         signal: "e,state,indicator,disabled"; source: "e";
+         action: STATE_SET "disabled" 0.0;
+         target: "e.event.indicator";
+      }
+      program {
          signal: "mouse,in"; source: "e.event.resize";
          action: SIGNAL_EMIT "e,action,resize,in" "e";
       }