Permalink
Browse files

Hide some widgets (properly) when we can't use them

  • Loading branch information...
1 parent 94bd805 commit 268063ba8d3d85babedb0c87231a15c2f5fc4566 @davekeogh committed Sep 7, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 redditmonitor/ui.py
View
@@ -95,10 +95,10 @@ def __init__(self, parent):
self.ui_manager.get_widget('/TrayMenu/Sound').set_active(self.app.options['sound'])
if not self.app.modules['pynotify']:
- self.ui_manager.get_widget('/TrayMenu/Notify').set_visible(False)
+ self.ui_manager.get_widget('/TrayMenu/Notify').hide()
if not self.app.modules['gnome']:
- self.ui_manager.get_widget('/TrayMenu/Sound').set_visible(False)
+ self.ui_manager.get_widget('/TrayMenu/Sound').hide()
def popup(self, widget, button, activate_time, data=None):
self.ui_manager.get_widget('/TrayMenu').popup(None, None, None, button, activate_time)

0 comments on commit 268063b

Please sign in to comment.