Go to the documentation of this file.
14 #include "../testdialogs/dlg_test.h"
15 #include "../testdialogs/dlg_test2.h"
17 #include <gwenhywfar/gwenhywfar.h>
18 #include <gwenhywfar/gui.h>
19 #include <gwenhywfar/dialog.h>
20 #include <gwenhywfar/debug.h>
25 # define sleep(x) Sleep(x)
34 int test1(
int argc,
char **argv) {
48 gtk_init (&argc, &argv);
56 fprintf(stderr,
"Could not create dialog.\n");
61 fprintf(stderr,
"Result: %d\n", rv);
70 int test2(
int argc,
char **argv) {
79 gtk_init (&argc, &argv);
89 "<p><b>This</b> is an example <i>text</i>..</p>"
90 "<p>As you can see <font color=red>colors</font> can "
95 for (i1=1; i1<=10; i1++) {
98 snprintf(numbuf,
sizeof(numbuf)-1,
"Step %d\n", (
int)i1);
104 "Starting 2nd progress...",
107 for (i2=1; i2<=10; i2++) {
109 fprintf(stderr,
"Advancing %d/%d\n", (
int)i1, (
int)i2);
112 fprintf(stderr,
"Aborted by user (2)\n");
120 fprintf(stderr,
"Aborted by user (1)\n");
146 gtk_init (&argc, &argv);
154 fprintf(stderr,
"Could not create dialog.\n");
159 fprintf(stderr,
"Result: %d\n", rv);
168 int main(
int argc,
char **argv) {
170 if (strcasecmp(argv[1],
"1")==0)
171 return test1(argc, argv);
172 else if (strcasecmp(argv[1],
"2")==0)
173 return test2(argc, argv);
174 else if (strcasecmp(argv[1],
"3")==0)
175 return test3(argc, argv);
177 return test1(argc, argv);