diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-02-09 22:24:47 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-09 23:12:32 -0500 |
commit | a6c54669007f3932d6e2813e618bb106579fd28f (patch) | |
tree | 13835ffeb8a11f13a6fc142023050a6bac0f9354 /tests/testvolumebutton.c | |
parent | c78971165215ca749af68c3f6f16fb7eca08e142 (diff) | |
download | gtk+-a6c54669007f3932d6e2813e618bb106579fd28f.tar.gz |
Stop using gtk_main and gtk_main_quit
Replace these calls with direct use of GMainContext api.
Diffstat (limited to 'tests/testvolumebutton.c')
-rw-r--r-- | tests/testvolumebutton.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testvolumebutton.c b/tests/testvolumebutton.c index 04bff92ccd..f35f31f139 100644 --- a/tests/testvolumebutton.c +++ b/tests/testvolumebutton.c @@ -114,7 +114,8 @@ main (int argc, g_signal_emit_by_name (button, "clicked"); g_timeout_add (4000, (GSourceFunc) show_error, window); - gtk_main (); + while (TRUE) + g_main_context_iteration (NULL, TRUE); return 0; } |