Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2006-06-13 00:08:27 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2006-06-13 00:08:27 (GMT)
commit6037caa6918ef720a9687f2276ecb70106b672cc (patch)
tree3249909749c80502e51b17d1674252c23ab9bd96 /sugar
parentcdf7583d392c7a3b07607e914216df8b0435f62e (diff)
Run gtk_main only if it's __main__,
Diffstat (limited to 'sugar')
-rwxr-xr-xsugar/shell/shell.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sugar/shell/shell.py b/sugar/shell/shell.py
index 04d2fa0..fae10f8 100755
--- a/sugar/shell/shell.py
+++ b/sugar/shell/shell.py
@@ -363,10 +363,10 @@ def main():
presence_window.show()
console.set_parent_window(activity_container.window)
+
+if __name__ == "__main__":
+ main()
try:
gtk.main()
except KeyboardInterrupt:
pass
-
-if __name__ == "__main__":
- main()