Ticket #1601: 0001-Unfreeze-DCON-on-intro-screen-1601.patch

File 0001-Unfreeze-DCON-on-intro-screen-1601.patch, 1.1 KB (added by dsd, 14 years ago)
  • src/jarabe/intro/__init__.py

    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  
    11import os
    22
    33import gtk
     4import gobject
    45
    56from sugar import env
    67from sugar.profile import get_profile
    from sugar.profile import get_profile 
    89from jarabe.intro.window import IntroWindow
    910from jarabe.intro.window import create_profile
    1011
     12def unfreeze_dcon_cb():
     13    from jarabe.model import screen
     14    screen.set_dcon_freeze(0)
     15
    1116def check_profile():
    1217    profile = get_profile()
    1318
    def check_profile(): 
    2227    if not profile.is_valid():
    2328        win = IntroWindow()
    2429        win.show_all()
     30        gobject.idle_add(unfreeze_dcon_cb)
    2531        gtk.main()