Browse Source

Port the editor to the new g_thread stuff

Aaron Mueller 6 years ago
parent
commit
ae40a85ce1
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      editor/main.c

+ 1
- 3
editor/main.c View File

@@ -116,7 +116,6 @@ gint main(gint argc, gchar *argv[]) {
116 116
   glade_xml_signal_autoconnect(xml);
117 117
 
118 118
   if (g_thread_supported()) {
119
-    g_thread_init(NULL);
120 119
     gdk_threads_init();
121 120
   } else {
122 121
     g_error("Threads not supported, we die.");
@@ -125,8 +124,7 @@ gint main(gint argc, gchar *argv[]) {
125 124
 
126 125
   // Start the polling thread to try to connect to the LED-Cube.
127 126
   GError *error;
128
-  g_thread_init(NULL);
129
-  connectThread = g_thread_create((GThreadFunc)connectToLEDCube, NULL, TRUE, &error);
127
+  connectThread = g_thread_new("connection_thread", (GThreadFunc)connectToLEDCube, &error);
130 128
   if (connectThread == NULL) {
131 129
     g_error("Can't create the thread, we stop here.");
132 130
     exit(1);

Loading…
Cancel
Save