Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-10-31 13:59:05 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-10-31 13:59:05 (GMT)
commit54ffaaa7f9c09c4825ed46c73a488615200f5318 (patch)
treee89f05cabd8583ba090c41409f591a3ca32b2df5
parent1a3d520dce5d5accebde23cd46a181b57e0860d1 (diff)
parenta92e2bf7b160233b73a79f496044084fcfe9586d (diff)
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
-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)