summaryrefslogtreecommitdiff
path: root/test/simple
diff options
context:
space:
mode:
Diffstat (limited to 'test/simple')
-rw-r--r--test/simple/iupmain.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/simple/iupmain.c b/test/simple/iupmain.c
index e8af887..2f2efc1 100644
--- a/test/simple/iupmain.c
+++ b/test/simple/iupmain.c
@@ -21,12 +21,14 @@ int main(int argc, char** argv)
simple_loadled();
+#ifdef USE_GDK
+ IupSetAttribute(IupGetHandle("SimpleCanvas"), "CD_GDK", "YES");
+#endif
+
IupSetAttribute(IupGetHandle("SimpleDialog"), "PLACEMENT", "MAXIMIZED");
IupShow(IupGetHandle("SimpleDialog"));
-#ifdef USE_GDK
- IupSetAttribute(IupGetHandle("SimpleCanvas"), "CD_GDK", "Yes");
-#endif
+
SimpleCreateCanvas((char*)IupGetHandle("SimpleCanvas"));
IupSetFunction("cmdExit", (Icallback) cmdExit);