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

Some demo issues

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



Joined: 01 Apr 2007
Posts: 56

PostPosted: Thu Jan 31, 2008 2:50 pm    Post subject: Some demo issues Reply with quote

Hi,

I'am currently palying around with gtkD.
Thanks for all the work!

I stumbled over two minor problems:
./demos/gtk/DrawRect
crashes on my system (linux/tango/dmd.1.026):
Code:
Loaded lib = libgtk-x11-2.0.so
Loaded lib = libgobject-2.0.so
Loaded lib = libglib-2.0.so
Loaded lib = libgdk-x11-2.0.so
Loaded lib = libgdk_pixbuf-2.0.so
Loaded lib = libpango-1.0.so
Loaded lib = libgthread-2.0.so
Loaded lib = libatk-1.0.so
Loaded lib = libcairo.so.2
Segmentation fault


Another issues is, running "rebuild Main.d -L-ldl" on the ./demos/gtk/HelloWorld.d works fine,
while "rebuild Main.d -L-ldl -odtmp" produces linker errors. I don't know where the problem is,
but maybe it has be fixed on the gtkD side.

Also, the close button for OtherTest doesn't work.
Back to top
View user's profile Send private message
kaarna



Joined: 03 Apr 2006
Posts: 92
Location: Finland

PostPosted: Thu Jan 31, 2008 3:46 pm    Post subject: Reply with quote

If you look at the DrawRect code, you'll see that the program does nothing. There's also a ticket made about the issue.
I think I remember that somebody said that DrawRect was some test code for the Exceptions, and it should be renamed to reflect that it's supposed to have an error coming out of it... But you're right, it's really confusing why it's there with the helloworld's and named drawrect, as drawing rectangles is quite a basic functionality that you'd expect to stumble upon when looking at the early examples. The Cairo clock example will tell you much more about the suggested way of drawing.
In fact the current DrawRect is a test and not a demo. It should be moved to some internal folder which could then have some sort of stress testing and other testing examples...
Back to top
View user's profile Send private message AIM Address MSN Messenger
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jan 31, 2008 3:54 pm    Post subject: Re: Some demo issues Reply with quote

mandel wrote:
Also, the close button for OtherTest doesn't work.


It should be working in svn r425
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jan 31, 2008 4:13 pm    Post subject: Re: Some demo issues Reply with quote

mandel wrote:
Another issues is, running "rebuild Main.d -L-ldl" on the ./demos/gtk/HelloWorld.d works fine,
while "rebuild Main.d -L-ldl -odtmp" produces linker errors. I don't know where the problem is,
but maybe it has be fixed on the gtkD side.


rebuild doesn't use the fully qualified names when using the -odtmp flag and this creates an conflict with tango.stdc.config.o and tango.stdc.posix.config.o one of witch overrides the other. try using -oqtmp so you'll have fully qualified names.
Back to top
View user's profile Send private message
mwarning



Joined: 01 Apr 2007
Posts: 56

PostPosted: Thu Jan 31, 2008 7:59 pm    Post subject: Reply with quote

Quote:

rebuild doesn't use the fully qualified names when using the -odtmp flag and this creates an conflict with tango.stdc.config.o and tango.stdc.posix.config.o one of witch overrides the other. try using -oqtmp so you'll have fully qualified names.

-oq works; my bad Wink

Quote:
It should be working in svn r425

quick! Smile

Some other issue I ran into.
Context.showText("test") crahes the program.
I found out that it's a bug that does also have a workaound:
http://www.mail-archive.com/gtkmm-list@gnome.org/msg09032.html
Just in case others stumble over this bug.

So far a big thanks for the bindings,
everything works very nice so far!
Back to top
View user's profile Send private message
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