FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

problems getting gtkD to work on win32

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
tulpe



Joined: 19 Jan 2007
Posts: 8

PostPosted: Sat Oct 13, 2007 5:31 am    Post subject: problems getting gtkD to work on win32 Reply with quote

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
View user's profile Send private message
kaarna



Joined: 03 Apr 2006
Posts: 92
Location: Finland

PostPosted: Sun Oct 21, 2007 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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