On Wed, 22 Jun 2016 13:43:00 GMT, Gerald Nunn wrote:

On Tue, 21 Jun 2016 20:51:10 GMT, dan hitt wrote:

Can somebody point me to an example gtkd program that has an object of class Timeout in it?

.....

I use a timeout in but it's a fairly large code base rather then a simple example, hopefully it's of use anyway.

https://github.com/gnunn1/terminix/blob/master/source/gx/terminix/terminal/terminal.d

Thanks Gerald.

Your reference is very helpful, and i was able to imitate it nearly successfully.

I have one residual problem that i know of:
I tend to get messages of this form:

GLib-CRITICAL **: Source ID NNN was not found when attempting to remove it

and i'm not sure what to attribute it to, since d does its own garbage collection
(so i guess i'm already assuming this is a GC issue).

In the course of your development, did you ever run into this?

(Note that i'm using gdc not dmd.)

TIA for any info, and thanks again for your help.

dan