[ontv] Update tooltips correctly and remove unused import



commit 1c1d87f9dc53718aa202f38fbcea0f096f6ff52e
Author: Olof Kindgren <olki src gnome org>
Date:   Tue Jul 6 00:22:27 2010 +0200

    Update tooltips correctly and remove unused import
    
    gnome import is not used in assistant
    Tooltips are now updated if the new value is an empty string

 bin/ontv.in       |    2 ++
 ontv/assistant.py |    1 -
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/bin/ontv.in b/bin/ontv.in
index 8f7ba1d..06671eb 100644
--- a/bin/ontv.in
+++ b/bin/ontv.in
@@ -88,6 +88,8 @@ class OnTVStatusIcon:
   def cb_status(self, msg):
     if msg:
       self.statusIcon.set_tooltip(msg)
+    else:
+      self.statusIcon.set_tooltip("")
 
   def run(self):
     gtk.gdk.threads_init()
diff --git a/ontv/assistant.py b/ontv/assistant.py
index 0f2e512..47507df 100644
--- a/ontv/assistant.py
+++ b/ontv/assistant.py
@@ -24,7 +24,6 @@ import sys
 from gettext import gettext as _
 
 import gtk
-import gnome
 import gobject
 try:
     import vte



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]