2018-06-08 17:03:22 +00:00
|
|
|
#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[])
|
|
|
|
{
|
2020-05-28 08:00:03 +00:00
|
|
|
/* Don't use gtk_test_init here because it implicitly initializes GTK+. */
|
2018-06-08 17:03:22 +00:00
|
|
|
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 ();
|
|
|
|
}
|