From ae71fff5df129c544806e093c4bb39a522cd83aa Mon Sep 17 00:00:00 2001
From: Daniel Drake <dsd@laptop.org>
Date: Wed, 2 Dec 2009 11:34:09 +0000
Subject: [PATCH] Unfreeze DCON on intro screen (#1601)
Otherwise the display remained locked and the intro screen was
not visible.
---
src/jarabe/intro/__init__.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/jarabe/intro/__init__.py b/src/jarabe/intro/__init__.py
index ca4f64d..ebf774d 100644
a
|
b
|
|
1 | 1 | import os |
2 | 2 | |
3 | 3 | import gtk |
| 4 | import gobject |
4 | 5 | |
5 | 6 | from sugar import env |
6 | 7 | from sugar.profile import get_profile |
… |
… |
from sugar.profile import get_profile |
8 | 9 | from jarabe.intro.window import IntroWindow |
9 | 10 | from jarabe.intro.window import create_profile |
10 | 11 | |
| 12 | def unfreeze_dcon_cb(): |
| 13 | from jarabe.model import screen |
| 14 | screen.set_dcon_freeze(0) |
| 15 | |
11 | 16 | def check_profile(): |
12 | 17 | profile = get_profile() |
13 | 18 | |
… |
… |
def check_profile(): |
22 | 27 | if not profile.is_valid(): |
23 | 28 | win = IntroWindow() |
24 | 29 | win.show_all() |
| 30 | gobject.idle_add(unfreeze_dcon_cb) |
25 | 31 | gtk.main() |