diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-06 12:43:03 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2012-11-06 20:05:45 (GMT) |
commit | 0e854281f1c4e51b6a73129b4c4aaee93f5a0285 (patch) | |
tree | 541f8b28b4b3d5030bbead7aaeb5249e48848565 /src | |
parent | 0a4864fa06dccd97b0907ff16a80c058b39f34db (diff) |
Move IntroWindow creation to sugar-session
It avoids the unexpected side effect (showing the intro UI
implicityly when we are just checking the profile existence).
It also prepares for listening to an IntroWindow done signal
instead of blocking in a mainloop.
Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com>
Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/jarabe/intro/__init__.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/jarabe/intro/__init__.py b/src/jarabe/intro/__init__.py index d2e9276..0045c74 100644 --- a/src/jarabe/intro/__init__.py +++ b/src/jarabe/intro/__init__.py @@ -1,11 +1,8 @@ import os -from gi.repository import Gtk - from sugar3 import env from sugar3.profile import get_profile -from jarabe.intro.window import IntroWindow from jarabe.intro.window import create_profile @@ -20,7 +17,4 @@ def check_profile(): if os.path.exists(path): profile.convert_profile() - if not profile.is_valid(): - win = IntroWindow() - win.show_all() - Gtk.main() + return profile.is_valid() |