Wrapped gtk.main() in threading code. This should fix the startup segfaults

This commit is contained in:
Anna 2010-04-27 14:53:07 -04:00
parent f838d9a61e
commit 5ab60f1278
2 changed files with 2 additions and 1 deletions

View file

@ -447,4 +447,6 @@ parser.add_option('-c' ,'--config', dest="filename", default="~/.mytwitter.conf"
my_twitter = MyTwitter(options.filename)
gtk.gdk.threads_init()
gtk.gdk.threads_enter()
gtk.main()
gtk.gdk.threads_leave()