Basic implementation of the shutdown graphics

This commit is contained in:
Marco Pesenti Gritti
2007-01-11 11:20:08 +01:00
parent dda16d83c0
commit 297381cad7
7 changed files with 57 additions and 3 deletions
+6
View File
@@ -30,6 +30,12 @@ def get_bundle_path():
else:
return None
def is_emulator():
if os.environ.has_key('SUGAR_EMULATOR'):
if os.environ['SUGAR_EMULATOR'] == 'yes':
return True
return False
def get_bundle_service_name():
if os.environ.has_key('SUGAR_BUNDLE_SERVICE_NAME'):
return os.environ['SUGAR_BUNDLE_SERVICE_NAME']
+2
View File
@@ -22,6 +22,8 @@ from sugar.graphics.colors import colors
def _parse_string(color_string):
if color_string == 'white':
return ['#ffffff', '#414141']
elif color_string == 'insensitive':
return ['#ffffff', '#e2e2e2']
splitted = color_string.split(',')
if len(splitted) == 2: