Unfreeze dcon on idle.

This commit is contained in:
Marco Pesenti Gritti 2007-09-03 15:10:12 +02:00
parent a09a786ff7
commit a2a9cd2f70
2 changed files with 8 additions and 5 deletions

View File

@ -37,6 +37,7 @@ sys.path.insert(0, env.get_shell_path())
from view.Shell import Shell from view.Shell import Shell
from model.shellmodel import ShellModel from model.shellmodel import ShellModel
from shellservice import ShellService from shellservice import ShellService
from hardware import hardwaremanager
from intro import intro from intro import intro
def _start_matchbox(): def _start_matchbox():
@ -81,7 +82,14 @@ def check_cm(bus_name):
pass pass
return False 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(): def main():
gobject.idle_add(_unfreeze_dcon_idle_cb)
_save_session_info() _save_session_info()
_start_matchbox() _start_matchbox()
_setup_translations() _setup_translations()

View File

@ -36,7 +36,6 @@ from view.frame.frame import Frame
from view.keyhandler import KeyHandler from view.keyhandler import KeyHandler
from view.home.HomeWindow import HomeWindow from view.home.HomeWindow import HomeWindow
from model.shellmodel import ShellModel from model.shellmodel import ShellModel
from hardware import hardwaremanager
class Shell(gobject.GObject): class Shell(gobject.GObject):
def __init__(self, model): def __init__(self, model):
@ -69,10 +68,6 @@ class Shell(gobject.GObject):
home_model.connect('pending-activity-changed', home_model.connect('pending-activity-changed',
self._pending_activity_changed_cb) 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) gobject.idle_add(self._start_journal_idle)
def _start_journal_idle(self): def _start_journal_idle(self):