Bugfix: draw descriptions only if button is active.

portnov [2008-08-24 12:12:10]
Bugfix: draw descriptions only if button is active.
Filename
qwerty.py
diff --git a/qwerty.py b/qwerty.py
index ba38160..7eb909a 100755
--- a/qwerty.py
+++ b/qwerty.py
@@ -156,7 +156,7 @@ class SuperButton(gtk.DrawingArea):
         cr.show_text(self.key)

         self.draw_label(cr)
-        if self.desc:
+        if self.desc and self.active:
             self.draw_desc(cr)

         if self.icon:
@@ -193,6 +193,7 @@ class SuperButton(gtk.DrawingArea):
         self.icon = None
         self.active = False
         self.running = False
+        self.desc = None
         self.cls = None
         self.queue_draw()
ViewGit