Author |
Message |
Topic: Cast from Widget to ColorSelection fails with DMD 2.057 |
teales
Replies: 4
Views: 18663
|
Forum: gtkD Posted: Sun Dec 25, 2011 10:51 am Subject: Cast from Widget to ColorSelection fails with DMD 2.057 |
Mike,
You forgot to do:
import gtk.ColorSelection;
Steve |
Topic: Cast from Widget to ColorSelection fails with DMD 2.057 |
teales
Replies: 4
Views: 18663
|
Forum: gtkD Posted: Fri Dec 23, 2011 3:48 am Subject: Cast from Widget to ColorSelection fails with DMD 2.057 |
I've posted this to digitalmars.D also.
gtkD has a ColorSelectionDialog class with a method that returns an associated ColorSelection class as a Widget. In COMPO I used to cast this to a ColorSelec ... |
Topic: Gtk+2.0 for Ubuntu 11.10 |
teales
Replies: 2
Views: 17128
|
Forum: gtkD Posted: Fri Dec 23, 2011 12:49 am Subject: Gtk+2.0 for Ubuntu 11.10 |
Having just updated my system to 11.10 I don't now have any gtk+2.0 libraries.
Is there a convenient binary source, and is it safe to have these on a gtk+3.0 system?
Steve |
Topic: Linking problem |
teales
Replies: 3
Views: 18525
|
Forum: gtkD Posted: Thu Dec 22, 2011 10:52 pm Subject: Linking problem |
Thanks Mike,
Actually it was the other way round. I had just installed dmd 2.057 and the matching gtkd 1.5.1 from the .deb mentioned in the forum.
The latter installed the library in /usr/lib/gt ... |
Topic: Linking problem |
teales
Replies: 3
Views: 18525
|
Forum: gtkD Posted: Thu Dec 22, 2011 12:45 pm Subject: Linking problem |
Trying to link my COMPO app compiled with DMD 2.057, I'm getting errors like:
src/gtkc/Loader.d:
undefined reference
_D3std5stdio4File17LockingTextWriter8
__cpctorMFKS3std5stdio4File17Lockin ... |
Topic: COMPO - a graphical designer using gtkD |
teales
Replies: 1
Views: 15324
|
Forum: gtkD Posted: Tue Sep 27, 2011 7:35 am Subject: COMPO - a graphical designer using gtkD |
If anyone wants to try it out, there's a .deb file and documentation at
http://britseyeview.com/software/compo/ |
Topic: How to do a multi-file D build with library dependencies? |
teales
Replies: 0
Views: 53315
|
Forum: CMakeD Posted: Sat Sep 17, 2011 11:02 am Subject: How to do a multi-file D build with library dependencies? |
OK, I've just spent far too long reading about several build systems, all of which have left me suitably confused.
I have a GUI application consisting presently of about 40 D source files, and one ... |
Topic: COMPO - a graphical designer using gtkD |
teales
Replies: 1
Views: 15324
|
Forum: gtkD Posted: Mon Sep 12, 2011 10:52 pm Subject: COMPO - a graphical designer using gtkD |
I am in the fairly advanced stages of developing an application for designing compositions on separate areas of say an A4 or US Letter Size sheet. GLabels is an example, but COMPO has a different look ... |
Topic: DMD 2.055 breaks the build |
teales
Replies: 2
Views: 15990
|
Forum: gtkD Posted: Fri Sep 09, 2011 2:26 am Subject: DMD 2.055 breaks the build |
Looks like the delegate for Thread has changed return type, and an explicit super(...) is required. The following builds OK. Changes marked ****.
this(FILE* file, bool delegate (string) read )
... |
Topic: DMD 2.055 breaks the build |
teales
Replies: 2
Views: 15990
|
Forum: gtkD Posted: Fri Sep 09, 2011 2:07 am Subject: DMD 2.055 breaks the build |
Build seems to be broken by dmd 2.055 -
src/glib/Spawn.d(268): Error: constructor glib.Spawn.Spawn.ReadFile.this no match for implicit super() call in constructor
make: *** [src/glib/Spawn.o] Error ... |
Topic: Cairo Context memory management. |
teales
Replies: 5
Views: 23169
|
Forum: gtkD Posted: Sun Sep 04, 2011 10:30 pm Subject: Cairo Context memory management. |
Run away screaming! You should see mine - not a private or protected member variable in sight.
The proof of the pudding is the eating, and I've got a long way into what I'm working on without hitti ... |
Topic: From an ImageSurface to a Pixbuf |
teales
Replies: 0
Views: 15247
|
Forum: gtkD Posted: Fri Sep 02, 2011 12:53 pm Subject: From an ImageSurface to a Pixbuf |
The GTK documentation is a bit cryptic around this point. The following might help:
extern(C) cairo_status_t imgWriteFunc(void* closure,
... |
Topic: Cairo Context memory management. |
teales
Replies: 5
Views: 23169
|
Forum: gtkD Posted: Fri Sep 02, 2011 12:43 pm Subject: Cairo Context memory management. |
Mike,
Yes, that sounds sensible. How is not that clear to me. Could the destructor and the gtkD destroy() function test for the remaining reference count and behave accordingly. Also is the GTK+ me ... |
Topic: Cairo Context memory management. |
teales
Replies: 5
Views: 23169
|
Forum: gtkD Posted: Thu Sep 01, 2011 6:16 am Subject: Cairo Context memory management. |
There seems to be conflict or mismatch in some areas of the library between the garbage collection in D, and the reference counting system used by GTK objects.
In the application I'm working on, I ... |
Topic: Strange behavior getting a property from a TextTag |
teales
Replies: 4
Views: 20472
|
Forum: gtkD Posted: Sun Aug 28, 2011 4:27 am Subject: Strange behavior getting a property from a TextTag |
Sorry Mike,
I had missed the terminating null in one case, so your answer was spot on.
For any interested parties, I had done this in the first place because I did not know how to recover the 'f ... |
|