Run gtk_main only if it's __main__,

This commit is contained in:
Marco Pesenti Gritti 2006-06-12 20:08:27 -04:00
parent cdf7583d39
commit 6037caa691

View File

@ -363,10 +363,10 @@ def main():
presence_window.show() presence_window.show()
console.set_parent_window(activity_container.window) console.set_parent_window(activity_container.window)
if __name__ == "__main__":
main()
try: try:
gtk.main() gtk.main()
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass
if __name__ == "__main__":
main()