summaryrefslogtreecommitdiff
path: root/test/simple/iupmain.c
diff options
context:
space:
mode:
authorscuri <scuri>2009-07-07 00:13:40 +0000
committerscuri <scuri>2009-07-07 00:13:40 +0000
commitad9b34e834fc762ca63073e9865526125644edaa (patch)
treed6ec0ab8a80313e4cb2f314a416d74276c25f2f4 /test/simple/iupmain.c
parentc8f1fb92adb9acfd3271a3e5e8f4abacfa609572 (diff)
*** empty log message ***
Diffstat (limited to 'test/simple/iupmain.c')
-rw-r--r--test/simple/iupmain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/simple/iupmain.c b/test/simple/iupmain.c
index 4eb4a5d..562d06c 100644
--- a/test/simple/iupmain.c
+++ b/test/simple/iupmain.c
@@ -15,13 +15,18 @@ int main(int argc, char** argv)
{
IupOpen(&argc, &argv);
+#ifndef USE_GDK
cdInitContextPlus();
+#endif
simple_loadled();
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);