Wrapped gtk.main() in threading code. This should fix the startup segfaults
This commit is contained in:
parent
f838d9a61e
commit
5ab60f1278
2 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue