gtk2/testsuite/gtk/main.c
Matthias Clasen a8db322be6 Drop gtk_get_main_thread
This is not a very useful api, and if you need it,
you can just as easily keep track yourself which thread
called gtk_init().
2020-02-09 23:13:13 -05:00

24 lines
474 B
C

#include <gtk/gtk.h>
#include <locale.h>
static void
test_init (void)
{
g_assert (gtk_is_initialized () == FALSE);
g_assert (gtk_init_check ());
g_assert (gtk_is_initialized () == TRUE);
}
int
main (int argc, char *argv[])
{
/* Don't use gtk_test_init here because it implicitely initializes GTK+. */
g_test_init (&argc, &argv, NULL);
gtk_disable_setlocale();
setlocale (LC_ALL, "C");
g_test_add_func ("/main/init", test_init);
return g_test_run ();
}