Do you run a standard linux 32 bit? Which distro? Which gtk version (see
the name of the lib, e.g. /usr/lib/libgtk-x11-2.0.so.0.1200.9)
My news client cannot show your attachment.
Is it the simple.d from the dwt-samples project or the installation wiki
page?
Frank
JDavidLS schrieb:

Yes, the snippet is the simple.d from the dwt-examples, I have a Ubuntu hardy
neron in a x86-64 (AMD) with libgtk-x11-2.0.so.0.1200.9. The libDG-dwt and the
code example has been compiled with gdmd. When i running one of the example
binaries, always get a similar message. I need help for this. Tanks

Yes, the snippet is the simple.d from the dwt-examples, I have a Ubuntu hardy
neron in a x86-64 (AMD) with libgtk-x11-2.0.so.0.1200.9. The libDG-dwt and the
code example has been compiled with gdmd. When i running one of the example
binaries, always get a similar message. I need help for this. Tanks

yes, i though it is a non 32 bit OS, hence my question about 32 bit :)
DWT was only tested with 32 bit and DMD.
If you are willing to get involved in helping DWT to get GDC and 64 bit
ready, this would be awesome.

I have exactly the same problem here. I checked the class_size values used in
Display.d and it seems that there is a constant difference of 4 compared with
the
values returned by this C-Code:
GTypeQuery query;
g_type_query(GTK_TYPE_XXX, &query);
printf("Class size: %d\n", query.class_size);
Here are the exact values:
GtkFixed: 824 C and 820 D
GtkCellRendererText: 264 C and 260 D
GtkCellRendererPixbuf: 256 C and 260 D
GtkCellRendererToggle: 264 C and 264 D
I don't know if this is of any use, but I'm willing to help in making dwt
runnable
with gdc and x64 :)

I have exactly the same problem here. I checked the class_size values used in
Display.d and it seems that there is a constant difference of 4 compared with
the
values returned by this C-Code:
GTypeQuery query;
g_type_query(GTK_TYPE_XXX, &query);
printf("Class size: %d\n", query.class_size);
Here are the exact values:
GtkFixed: 824 C and 820 D
GtkCellRendererText: 264 C and 260 D
GtkCellRendererPixbuf: 256 C and 260 D
GtkCellRendererToggle: 264 C and 264 D
I don't know if this is of any use, but I'm willing to help in making dwt
runnable
with gdc and x64 :)

Thats brilliant news :)
If you want, join the IRC channel #dwt on freenode, so we can "talk"
directly.
From those values i would think it is an alignment problem.
in dwt-linux/dwt/internal/c/gtk.d line 68 i found an align(4) statement.
Can you test to remove it?
Did you get those values by using the dwt-samples/devhelpers/structslinux ?
Where these the only differences?