Author |
Message |
Topic: linking gtkD on Win and Linux |
GG
Replies: 4
Views: 10597
|
Forum: gtkD Posted: Tue Feb 16, 2010 11:28 am Subject: linking gtkD on Win and Linux |
I have never use Code::Blocks but if you want only one compact library GtkD.lib:
For Windows follow this make all
make install
You will get libgtkd.a, libgtkdgl.a, libgtkdsv.a, then maybe you can l ... |
Topic: howto compile gtkd with dmd in windows 32 bit |
GG
Replies: 9
Views: 23937
|
Forum: gtkD Posted: Tue Feb 16, 2010 4:11 am Subject: howto compile gtkd with dmd in windows 32 bit |
You have to download and install gtk+ "-IC:\path_to_gtkD\src"
You can download bud/build on build gtkD.brf.
You will get only one file "GtkD.lib" with all .obj files in.
... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Thu Dec 17, 2009 5:35 pm Subject: D_Version2 and gdk.Threads |
Thanks for update ! |
Topic: Samples code and this forum |
GG
Replies: 1
Views: 6090
|
Forum: gtkD Posted: Sat Dec 12, 2009 11:52 pm Subject: Samples code and this forum |
When I search samples code of Gtkd and D with google, I found results of others languages and sometimes results redirect me to this forum but only if anyone post a source code with a problem.
My qu ... |
Topic: Glib.Timeout and ProgressBar |
GG
Replies: 4
Views: 9209
|
Forum: gtkD Posted: Sat Dec 12, 2009 11:34 pm Subject: Glib.Timeout and ProgressBar |
I forgot extern C at the beginning of the fonction.
Do we have to use extern C because the fonction is not implemented in D ? If I want to implement in D, is there a solution ? Convert into a delega ... |
Topic: Glib.Timeout and ProgressBar |
GG
Replies: 4
Views: 9209
|
Forum: gtkD Posted: Fri Dec 11, 2009 8:54 pm Subject: Glib.Timeout and ProgressBar |
I try to use ProgressBar with Glib.Timeout in this sample code but I get a segmentation fault when enter in update_progress_bar.
I'm doing something wrong ?
module sample;
import gtk.Window ... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Fri Dec 11, 2009 5:58 pm Subject: D_Version2 and gdk.Threads |
Thanks for reply !
I tried it but I can't get it work... I will try again.
It seems that Glib.Idle can't work properly in a class, because the callback is not a delegate.
I think that I should cl ... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Thu Dec 10, 2009 1:47 pm Subject: D_Version2 and gdk.Threads |
So, to create GUI application threading and work with progressbar for example, we can use :
- gdkThreadsEnter() with main gtk+ lock
- g_idle_add_full() in /Glib/Idle.d,
- or timeout in gtk/timeout ... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Wed Dec 09, 2009 6:06 pm Subject: D_Version2 and gdk.Threads |
OK, good !
I compiled this code under Windows and ... it works !!!!! I'm surprised because it was not supposed... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Tue Dec 08, 2009 7:44 pm Subject: D_Version2 and gdk.Threads |
You got it Mike Wey !!!!!!!!!!!!!!!!!!!!!!!!!!!! It wasn't easy !!!
Thanks to confirm me that we can create threading application with D and GtkD. It's a real pleasure to work with.
Many thanks ... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Mon Dec 07, 2009 4:01 pm Subject: D_Version2 and gdk.Threads |
Okey ! I decided to use gdb as debugger and it gives me:
[Thread debugging using libthread_db enabled]
warning: .dynamic section for "/usr/lib/libcairo.so.2" is not at the expected addre ... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Mon Dec 07, 2009 2:47 pm Subject: D_Version2 and gdk.Threads |
hum, I'm using DMD2 as compiler, and I think there is no backtrace within. Can I do something as : debug scope( failure ) writef("Backtrace xx "__FILE__"(",__LINE__,")\n" ... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Sun Dec 06, 2009 9:47 pm Subject: D_Version2 and gdk.Threads |
Using GTK+2.18.3, DMD2.37, GtkD1.3, compile and get same problem.
Is there a problem of compatibility between them?
After long investigation, I discovered this when my application loads library:
... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Sun Dec 06, 2009 10:30 am Subject: D_Version2 and gdk.Threads |
I'm using Linux,
Code source client.d:
module client;
import std.stdio;
import std.socket;
import std.string;
import std.conv;
import gtk.Builder;
import gtk.Main;
import gtk.Window; ... |
Topic: D_Version2 and gdk.Threads |
GG
Replies: 17
Views: 27164
|
Forum: gtkD Posted: Sun Dec 06, 2009 9:50 am Subject: D_Version2 and gdk.Threads |
Is it true that gdk.Threads is not compatible with D_Version2(I'm using dmd2.036 and GtkD1.3).
Because I try to make test application with a thread that listen a socket client to update a TextView (l ... |
|