mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
[mainloop-test] Fix compilation errors
This commit is contained in:
parent
ba1163a33c
commit
183102104a
@ -158,13 +158,13 @@ adder_thread (gpointer data)
|
||||
addr_data.count = 0;
|
||||
|
||||
adder_source = g_io_create_watch (channels[0], G_IO_IN | G_IO_HUP);
|
||||
g_source_set_name (source, "Adder I/O");
|
||||
g_source_set_name (adder_source, "Adder I/O");
|
||||
g_source_set_callback (adder_source, (GSourceFunc)adder_callback, &addr_data, NULL);
|
||||
g_source_attach (adder_source, context);
|
||||
g_source_unref (adder_source);
|
||||
|
||||
timeout_source = g_timeout_source_new (10);
|
||||
g_source_set_name (source, "Adder timeout");
|
||||
g_source_set_name (timeout_source, "Adder timeout");
|
||||
g_source_set_callback (timeout_source, (GSourceFunc)timeout_callback, &addr_data, NULL);
|
||||
g_source_set_priority (timeout_source, G_PRIORITY_HIGH);
|
||||
g_source_attach (timeout_source, context);
|
||||
|
Loading…
Reference in New Issue
Block a user