[Sugar-devel] [PATCH sugar 08/20] Unsplit a couple of very small methods

Daniel Narvaez dwnarvaez at gmail.com
Mon Dec 10 14:11:34 EST 2012


From: Daniel Narvaez <dwnarvaez at gmail.com>

They just makes the code more difficult to read.
---
 src/jarabe/main.py |   13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/jarabe/main.py b/src/jarabe/main.py
index d1f86c2..d84b224 100755
--- a/src/jarabe/main.py
+++ b/src/jarabe/main.py
@@ -65,13 +65,6 @@ from jarabe.intro.window import IntroWindow
 from jarabe import frame
 from jarabe.view.service import UIService
 
-def start_ui_service():
-    ui_service = UIService()
-
-def start_session_manager():
-    session_manager = get_session_manager()
-    session_manager.start()
-
 def unfreeze_dcon_cb():
     logging.debug('STARTUP: unfreeze_dcon_cb')
     screen.set_dcon_freeze(0)
@@ -156,8 +149,10 @@ def set_theme():
     settings.set_property('gtk-icon-theme-name', 'sugar')
 
 def start_home():
-    start_ui_service()
-    start_session_manager()
+    ui_service = UIService()
+
+    session_manager = get_session_manager()
+    session_manager.start()
 
     # open homewindow before window_manager to let desktop appear fast
     home_window = homewindow.get_instance()
-- 
1.7.10.4



More information about the Sugar-devel mailing list