Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/controlpanel
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2009-02-10 18:15:17 (GMT)
committer Simon Schampijer <simon@schampijer.de>2009-02-10 18:15:17 (GMT)
commit12bffbd7fb7fc5c60d421cd61729ec5cd96c3e68 (patch)
tree6b26998e693311dc2e9eb8414496b911d2f476fe /src/jarabe/controlpanel
parent5bbb8f404d3c67c2feeb42fd85dbb0f4a415a61f (diff)
Only show cp power section on xo
Diffstat (limited to 'src/jarabe/controlpanel')
-rw-r--r--src/jarabe/controlpanel/gui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jarabe/controlpanel/gui.py b/src/jarabe/controlpanel/gui.py
index 57f19f7..3d226fa 100644
--- a/src/jarabe/controlpanel/gui.py
+++ b/src/jarabe/controlpanel/gui.py
@@ -131,6 +131,9 @@ class ControlPanel(gtk.Window):
options = self._options.keys()
options.sort()
+ if not os.path.exists('/ofw'):
+ options.remove('power')
+
for option in options:
sectionicon = _SectionIcon(icon_name=self._options[option]['icon'],
title=self._options[option]['title'],
@@ -139,7 +142,7 @@ class ControlPanel(gtk.Window):
sectionicon.connect('button_press_event',
self.__select_option_cb, option)
sectionicon.show()
-
+
if option == 'aboutme':
self._table.attach(sectionicon, 0, 1, 0, 1)
elif option == 'aboutcomputer':