blob: dc5e2490693113291fbc4f0420cbc45cd3dd5a1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#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_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=%s");
g_test_add_func ("/main/init", test_init);
return g_test_run ();
}
|