home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / xdg / Config.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.6 KB  |  48 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. '''
  5. Functions to configure Basic Settings
  6. '''
  7. language = 'C'
  8. windowmanager = None
  9. icon_theme = 'highcolor'
  10. icon_size = 48
  11. cache_time = 5
  12. root_mode = False
  13.  
  14. def setWindowManager(wm):
  15.     global windowmanager
  16.     windowmanager = wm
  17.  
  18.  
  19. def setIconTheme(theme):
  20.     global icon_theme
  21.     icon_theme = theme
  22.     import xdg.IconTheme as xdg
  23.     xdg.IconTheme.themes = []
  24.  
  25.  
  26. def setIconSize(size):
  27.     global icon_size
  28.     icon_size = size
  29.  
  30.  
  31. def setCacheTime(time):
  32.     global cache_time
  33.     cache_time = time
  34.  
  35.  
  36. def setLocale(lang):
  37.     import locale
  38.     lang = locale.normalize(lang)
  39.     locale.setlocale(locale.LC_ALL, lang)
  40.     import xdg.Locale as xdg
  41.     xdg.Locale.update(lang)
  42.  
  43.  
  44. def setRootMode(boolean):
  45.     global root_mode
  46.     root_mode = boolean
  47.  
  48.