Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-10-31 13:14:06 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-10-31 13:14:06 (GMT)
commita92e2bf7b160233b73a79f496044084fcfe9586d (patch)
tree6c53f3e964b1896fdf4f6f8d49283b4c4c8643ee /shell
parent6278f8207ee8994924672456d2afad164aa900e5 (diff)
sugar-control: added note to restart for some methods, fix in color
Diffstat (limited to 'shell')
-rw-r--r--shell/controlpanel/control.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/shell/controlpanel/control.py b/shell/controlpanel/control.py
index 02ddfe3..63d9790 100644
--- a/shell/controlpanel/control.py
+++ b/shell/controlpanel/control.py
@@ -209,6 +209,10 @@ def _initialize():
if i%3 == 0:
set_language.__doc__ += '\n'
+def _note_restart():
+ print _('To apply your changes you have to restart sugar.\n' +
+ 'Hit at the same time ctrl+alt+erase on the keyboard to do this.')
+
def get_jabber():
pro = profile.get_profile()
return pro.jabber_server
@@ -223,7 +227,8 @@ def set_jabber(server):
pro = profile.get_profile()
pro.jabber_server = server
pro.save()
-
+ _note_restart()
+
def get_color():
return profile.get_color()
@@ -254,15 +259,16 @@ def set_color(stroke, fill, modstroke='medium', modfill='medium'):
return
if modstroke == modfill:
- if modfill == medium:
- modfill = light
+ if modfill == 'medium':
+ modfill = 'light'
else:
- modfill = medium
+ modfill = 'medium'
color = _COLORS[stroke][modstroke] + ',' + _COLORS[fill][modfill]
pro = profile.get_profile()
pro.color = XoColor(color)
pro.save()
+ _note_restart()
def get_nick():
return profile.get_nick_name()
@@ -277,7 +283,8 @@ def set_nick(nick):
pro = profile.get_profile()
pro.nick_name = nick
pro.save()
-
+ _note_restart()
+
def get_radio():
bus = dbus.SystemBus()
proxy = bus.get_object(NM_SERVICE_NAME, NM_SERVICE_PATH)
@@ -442,6 +449,7 @@ def set_language(language):
return
if language in _LANGUAGES:
_writeI18N(_LANGUAGES[language][0], _LANGUAGES[language][1])
+ _note_restart()
else:
print (_("Sorry I do not speak \'%s\'.")%language)