--- /tmp/crash.py 2009-05-02 10:57:42.000000000 +0100 +++ /tmp/crash1.py 2009-05-02 11:00:43.000000000 +0100 @@ -10,8 +10,10 @@ def run(self): while True: + gtk.gdk.threads_enter() self.Icon.set_from_stock('gtk-error') self.Icon.set_tooltip("Error!") + gtk.gdk.threads_leave() @@ -21,7 +23,9 @@ a = gtk.status_icon_new_from_stock('gtk-info') self.th = ThreadClass(a) self.th.start() + gtk.gdk.threads_enter() gtk.main() + gtk.gdk.threads_leave() if __name__ == '__main__':