From 5ab60f1278d2f59dbc73c3a59fd7985fb00309a7 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 27 Apr 2010 14:53:07 -0400 Subject: [PATCH] Wrapped gtk.main() in threading code. This should fix the startup segfaults --- TODO | 1 - mytwitter.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 848ce7d..97e938d 100644 --- a/TODO +++ b/TODO @@ -15,5 +15,4 @@ bugs: * Direct Messages have no names, only screen names (may not be fixable without considerable tweets to python-twitter) -* Segfault on start sometimes * Can't always kill tabs diff --git a/mytwitter.py b/mytwitter.py index 63bffab..e9c55b6 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -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()