Use g_thread_try_new() instead of g_thread_create()
[projects/chimara/chimara.git] / libchimara / chimara-glk.c
index b8926dcab94bea86d9619c9100b1747dc66714c0..88a05612881da451c5fdb548e449b96c270145f2 100644 (file)
@@ -1235,8 +1235,8 @@ chimara_glk_run(ChimaraGlk *glk, const gchar *plugin, int argc, char *argv[], GE
        g_object_notify(G_OBJECT(glk), "program-name");
        
     /* Run in a separate thread */
-       priv->thread = g_thread_create((GThreadFunc)glk_enter, startup, TRUE, error);
-       
+       priv->thread = g_thread_try_new("glk", (GThreadFunc)glk_enter, startup, error);
+
        return !(priv->thread == NULL);
 }