From 6b70cd55c5844e34c2835089a358c465a12b0090 Mon Sep 17 00:00:00 2001 From: Nikita Zlobin Date: Tue, 28 Dec 2010 21:07:05 +0500 Subject: [PATCH] Fix blinking --- jack_freewheel_button | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 jack_freewheel_button diff --git a/jack_freewheel_button b/jack_freewheel_button old mode 100644 new mode 100755 index d3ac65c..82761f1 --- a/jack_freewheel_button +++ b/jack_freewheel_button @@ -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 -- 2.11.4.GIT