Add OFF state to LedColor
authorPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 28 Feb 2010 13:47:31 +0000 (14:47 +0100)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Sun, 28 Feb 2010 13:47:31 +0000 (14:47 +0100)
src/led-color-widgets.vala

index 867b3ab..e096fec 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 public enum LedColor {
+       OFF = 0,
        R = 1,
        G = 2,
        B = 4,
@@ -30,7 +31,7 @@ class LedColorWidget : Gtk.DrawingArea {
        public LedColor color;
 
        public LedColorWidget () {
-               color = LedColor.RGB;
+               color = LedColor.OFF;
        }
 
        public LedColorWidget.with_color (LedColor _color) {