[Sugar-devel] [PATCH sugar 05/20] Do not exceed 80 cols
Daniel Narvaez
dwnarvaez at gmail.com
Mon Dec 10 14:11:31 EST 2012
From: Daniel Narvaez <dwnarvaez at gmail.com>
---
src/jarabe/main.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/jarabe/main.py b/src/jarabe/main.py
index a2444e0..fbf1f03 100755
--- a/src/jarabe/main.py
+++ b/src/jarabe/main.py
@@ -112,15 +112,16 @@ def setup_window_manager():
logging.debug('STARTUP: window_manager')
# have to reset cursor(metacity sets it on startup)
- if subprocess.call('echo $DISPLAY; xsetroot -cursor_name left_ptr', shell=True):
+ if subprocess.call('echo $DISPLAY; xsetroot -cursor_name left_ptr',
+ shell=True):
logging.warning('Can not reset cursor')
if subprocess.call('metacity-message disable-keybindings',
- shell=True):
+ shell=True):
logging.warning('Can not disable metacity keybindings')
if subprocess.call('metacity-message disable-mouse-button-modifiers',
- shell=True):
+ shell=True):
logging.warning('Can not disable metacity mouse button modifiers')
def bootstrap():
@@ -189,8 +190,8 @@ def main():
cleanup_temporary_files()
from sugar3 import logger
- # NOTE: This needs to happen so early because some modules register translatable
- # strings in the module scope.
+ # NOTE: This needs to happen so early because some modules register
+ # translatable strings in the module scope.
from jarabe import config
gettext.bindtextdomain('sugar', config.locale_path)
gettext.bindtextdomain('sugar-toolkit', config.locale_path)
@@ -221,7 +222,8 @@ def main():
GObject.idle_add(setup_cursortracker_cb)
# make sure we have the correct cursor in the intro screen
# TODO #3204
- if subprocess.call('echo $DISPLAY; xsetroot -cursor_name left_ptr', shell=True):
+ if subprocess.call('echo $DISPLAY; xsetroot -cursor_name left_ptr',
+ shell=True):
logging.warning('Can not reset cursor')
sound.restore()
--
1.7.10.4
More information about the Sugar-devel
mailing list