View previous topic :: View next topic |
Author |
Message |
tulpe
Joined: 19 Jan 2007 Posts: 8
|
Posted: Sat Oct 13, 2007 5:31 am Post subject: problems getting gtkD to work on win32 |
|
|
i cannot get gtkD to work.
C:\D\gtkD>compdGtkD.bat
compiles with no errors.
but when i run:
C:\D\gtkD>compdGtkDTests.bat
it aborts with:
demos\gtkD\TestDrawingArea.d(351): function gdk.Pixbuf.Pixbuf.renderToDrawable (Drawable,GdkGC *,int,int,int,int,int,int,GdkRgbDither,int,int) does not match parameter types (GdkDrawable *,GdkGC *,int,int,int,int,int,int,GdkRgbDither,int,int)
demos\gtkD\TestDrawingArea.d(351): Error: cannot implicitly convert expression ((d.getDrawableStruct)()) of type GdkDrawable * to gdk.Drawable.Drawable
Exec.compile status = 1
this is my directory structure:
c:\d\dm
c:\d\dmd
c:\d\gtkD
gtkD is gtkD-pre5.zip
dmd is v.1.020
GTK+ is v2.10.11 from http://gladewin32.sourceforge.net/modules/news/article.php?storyid=54
am i missing something? |
|
Back to top |
|
|
kaarna
Joined: 03 Apr 2006 Posts: 92 Location: Finland
|
Posted: Sun Oct 21, 2007 11:20 am Post subject: |
|
|
It seems to me that in the file TestDrawingArea.d on the line 351 you have something like this: Code: |
case "Image":
scaledPixbuf.renderToDrawable(d.getDrawableStruct(), gc.getGCStruct(),
0, 0, x, y,
scaledPixbuf.getWidth(), scaledPixbuf.getHeight(),
GdkRgbDither.NONE, 0, 0
);
break; |
Try changing that to this:
Code: |
case "Image":
scaledPixbuf.renderToDrawable( d, gc.getGCStruct(),
0, 0, x, y,
scaledPixbuf.getWidth(), scaledPixbuf.getHeight(),
GdkRgbDither.NONE, 0, 0
);
break; |
The "d.getDrawableStruct()" is changed to just "d". This might not fix all your problems with it, as you might have an incompatible version of gtkDTests, but if it does work after this change, then that would be nice. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|