finch/libgnt/test/focus.c

changeset 31294
73607ab89c6f
parent 15886
13ed89c4f01d
equal deleted inserted replaced
31293:169eeb43b52c 31294:73607ab89c6f
22 { 22 {
23 #ifdef STANDALONE 23 #ifdef STANDALONE
24 freopen(".error", "w", stderr); 24 freopen(".error", "w", stderr);
25 gnt_init(); 25 gnt_init();
26 #endif 26 #endif
27 27
28 GntWidget *label = gnt_label_new("So wassup dudes and dudettes!!\u4e0a1\u6d772\u67003\u4f4e4\u67085\nSo this is, like,\nthe third line!! \\o/"); 28 GntWidget *label = gnt_label_new("So wassup dudes and dudettes!!\u4e0a1\u6d772\u67003\u4f4e4\u67085\nSo this is, like,\nthe third line!! \\o/");
29 GntWidget *vbox, *hbox, *tree, *box, *button; 29 GntWidget *vbox, *hbox, *tree, *box, *button;
30 WINDOW *test; 30 WINDOW *test;
31 31
32 vbox = gnt_box_new(FALSE, FALSE); 32 vbox = gnt_box_new(FALSE, FALSE);
76 button = gnt_button_new("three"); 76 button = gnt_button_new("three");
77 gnt_widget_set_name(button, "three"); 77 gnt_widget_set_name(button, "three");
78 gnt_box_add_widget(GNT_BOX(vbox), button); 78 gnt_box_add_widget(GNT_BOX(vbox), button);
79 79
80 gnt_box_add_widget(GNT_BOX(hbox), vbox); 80 gnt_box_add_widget(GNT_BOX(hbox), vbox);
81 81
82 gnt_widget_show(hbox); 82 gnt_widget_show(hbox);
83 83
84 #ifdef STANDALONE 84 #ifdef STANDALONE
85 gnt_main(); 85 gnt_main();
86 86

mercurial