Port the editor to the new g_thread stuff