Use g_cond_wait_until() instead of g_cond_timed_wait()
[projects/chimara/chimara.git] / tests / test-userstyle.c
1 #include <libchimara/glk.h>
2
3 winid_t mainwin;
4
5 void 
6 glk_main(void)
7 {
8         /* Create user style before creating windows */
9         glk_stylehint_set(wintype_AllTypes, style_User1, stylehint_Size, -1);
10         glk_stylehint_set(wintype_AllTypes, style_User2, stylehint_Size, +1);
11         
12         mainwin = glk_window_open(0, 0, 0, wintype_TextBuffer, 0);
13         if(!mainwin)
14                 return;
15         glk_set_window(mainwin);
16
17         glk_set_style(style_User1);
18         glk_put_string("This text is in User1 and slightly smaller");
19         glk_set_style(style_Normal);
20         glk_put_string(".\n");
21         glk_set_style(style_User2);
22         glk_put_string("This text is in User2 and slightly larger");
23         glk_set_style(style_Normal);
24         glk_put_string(".\n");
25 }