summaryrefslogtreecommitdiff
path: root/iup/srccd
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
committerPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
commiteed0eb6a476d54ce19aeff137984aa981d9e3976 (patch)
tree807891636efd2f87dcbd261e971216269973ae07 /iup/srccd
parentccc8261e4d48de89da4ddfe7b55e378ae0cd6f47 (diff)
Upgrading to iup 3.1
Diffstat (limited to 'iup/srccd')
-rwxr-xr-xiup/srccd/Makefile2
-rwxr-xr-xiup/srccd/iup_cd.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/iup/srccd/Makefile b/iup/srccd/Makefile
index 43a3f09..8b1d154 100755
--- a/iup/srccd/Makefile
+++ b/iup/srccd/Makefile
@@ -3,4 +3,4 @@
do_all: iupcd
iupcd:
- @$(MAKE) --no-print-directory -f ../tecmake_compact.mak
+ @$(MAKE) --no-print-directory -f ../tecmake.mak
diff --git a/iup/srccd/iup_cd.c b/iup/srccd/iup_cd.c
index 5998775..619ded7 100755
--- a/iup/srccd/iup_cd.c
+++ b/iup/srccd/iup_cd.c
@@ -14,7 +14,6 @@
#include <cdiup.h>
#include <cdnative.h>
-
static void (*cdcreatecanvasNATIVE)(cdCanvas* canvas, void* data) = NULL;
static void cdcreatecanvasIUP(cdCanvas* canvas, Ihandle *ih_canvas)
@@ -24,8 +23,12 @@ static void cdcreatecanvasIUP(cdCanvas* canvas, Ihandle *ih_canvas)
#endif
char* data;
- if (IupGetInt(ih_canvas, "CD_GDK"))
+ if (cdBaseDriver()==CD_BASE_GDK)
+ {
data = IupGetAttribute(ih_canvas, "DRAWABLE"); /* new IUP 3 attribute, works for GTK only */
+ if (!data)
+ return;
+ }
else
{
#ifdef WIN32