From 12bffbd7fb7fc5c60d421cd61729ec5cd96c3e68 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Tue, 10 Feb 2009 18:15:17 +0000 Subject: Only show cp power section on xo --- (limited to 'src/jarabe/controlpanel') 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': -- cgit v0.9.1