Fix blinking
authorNikita Zlobin <cook60020tmp@mail.ru>
Tue, 28 Dec 2010 16:07:05 +0000 (28 21:07 +0500)
committerNikita Zlobin <cook60020tmp@mail.ru>
Tue, 28 Dec 2010 16:07:05 +0000 (28 21:07 +0500)
jack_freewheel_button [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d3ac65c..82761f1
@@ -70,14 +70,14 @@ def blink_toggle():
 
   global blink_state
   if blink_state:
-    button.modify_bg(gtk.STATE_ACTIVE, gtk.gdk.color_parse('darkorange'))
-    button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.color_parse('darkorange'))
-    b_label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse('lightyellow'))
-    blink_state = False
-  else:
     button.modify_bg(gtk.STATE_ACTIVE, gtk.gdk.color_parse('brown'))
     button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.color_parse('brown'))
     b_label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse('pink'))
+    blink_state = False
+  else:
+    button.modify_bg(gtk.STATE_ACTIVE, gtk.gdk.color_parse('darkorange'))
+    button.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.color_parse('darkorange'))
+    b_label.modify_fg(gtk.STATE_NORMAL, gtk.gdk.color_parse('lightyellow'))
     blink_state = True
   return True