Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xshell/sugar-shell8
-rw-r--r--shell/view/Shell.py5
2 files changed, 8 insertions, 5 deletions
diff --git a/shell/sugar-shell b/shell/sugar-shell
index 9786aa9..c2928c2 100755
--- a/shell/sugar-shell
+++ b/shell/sugar-shell
@@ -37,6 +37,7 @@ sys.path.insert(0, env.get_shell_path())
from view.Shell import Shell
from model.shellmodel import ShellModel
from shellservice import ShellService
+from hardware import hardwaremanager
from intro import intro
def _start_matchbox():
@@ -81,7 +82,14 @@ def check_cm(bus_name):
pass
return False
+def _unfreeze_dcon_idle_cb():
+ # Unfreeze the display when it's stable
+ hw_manager = hardwaremanager.get_manager()
+ hw_manager.set_dcon_freeze(0)
+
def main():
+ gobject.idle_add(_unfreeze_dcon_idle_cb)
+
_save_session_info()
_start_matchbox()
_setup_translations()
diff --git a/shell/view/Shell.py b/shell/view/Shell.py
index 4610c78..10307ee 100644
--- a/shell/view/Shell.py
+++ b/shell/view/Shell.py
@@ -36,7 +36,6 @@ from view.frame.frame import Frame
from view.keyhandler import KeyHandler
from view.home.HomeWindow import HomeWindow
from model.shellmodel import ShellModel
-from hardware import hardwaremanager
class Shell(gobject.GObject):
def __init__(self, model):
@@ -69,10 +68,6 @@ class Shell(gobject.GObject):
home_model.connect('pending-activity-changed',
self._pending_activity_changed_cb)
- # Unfreeze the display when it's stable
- hw_manager = hardwaremanager.get_manager()
- hw_manager.set_dcon_freeze(0)
-
gobject.idle_add(self._start_journal_idle)
def _start_journal_idle(self):