~rockstar/entertainer/kill-fixmes

« back to all changes in this revision

Viewing changes to entertainerlib/utils/configuration.py

  • Committer: Paul Hummer
  • Date: 2009-02-07 20:20:19 UTC
  • mfrom: (340.2.6 frontend-cleanup)
  • Revision ID: paul@eventuallyanyway.com-20090207202019-s13v5owgxwwcbaz8
Frontend refactored to include the system tray handler. (Matt Layman)

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
        else:
248
248
            return os.path.join(theme_path, "Default")
249
249
 
250
 
    def is_notifications_enabled(self):
251
 
        """
252
 
        Display on-screen notification bubbles on events.
253
 
        @return: boolean
254
 
        """
255
 
        try:
256
 
            result = self.preferences.getboolean("General",
257
 
                "display_notifications")
258
 
        except (NoSectionError, NoOptionError):
259
 
            return False
260
 
        return result
261
 
 
262
250
    def tray_icon_enabled(self):
263
251
        """
264
252
        Display tray icon.