global name Status Icon is undefined
Bug #137165 reported by
Paul Hoch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Weather wallpaper |
Fix Committed
|
Low
|
Raúl González Duque |
Bug Description
When running the new version I get the following message and it does not refresh:
Exception in thread Thread-1:
Traceback (most recent call last):
File "threading.py", line 460, in __bootstrap
self.run()
File "/usr/bin/
statusIcon.
NameError: global name 'statusIcon' is not defined
To post a comment you must log in.
I also get the same. I think it is because the statusIcon = gtk.StatusIcon() is in a try block, and may not be being called?
It can be fixed by changing lines 558-566 to:
statusIcon = gtk.StatusIcon()
try:
# Run the thread which updates the wallpaper
updater = Updater()
updater.start()
# Create the status icon set_from_ stock(gtk. STOCK_REFRESH)
statusIcon.
menu = gtk.Menu()