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

1
TODO
View File

@ -15,5 +15,4 @@ bugs:
* Direct Messages have no names, only screen names (may not be fixable without * Direct Messages have no names, only screen names (may not be fixable without
considerable tweets to python-twitter) considerable tweets to python-twitter)
* Segfault on start sometimes
* Can't always kill tabs * Can't always kill tabs

View File

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