Sign up

Example of gtk.Dialog usage?

Has anyone got an example of using a gtk.Dialog (not one of the subclasses). I have:

super("Preferences", parent, GtkDialogFlags.DESTROY_WITH_PARENT, cast(string[])[], []);

in the constructor of a subclass of gtk.Dialog. It compiles, but on execution in causes a

core.exception.RangeError@../../../../.dub/packages/gtk-d-3.8.2/gtk-d/generated/gtkd/gtk/Dialog.d(195): Range violation

and thence a -9 exit code.

Re: Example of gtk.Dialog usage?

On 25-05-18 20:14, Russel Winder wrote:

Has anyone got an example of using a gtk.Dialog (not one of the subclasses). I have:

super("Preferences", parent, GtkDialogFlags.DESTROY_WITH_PARENT, cast(string[])[], []);

in the constructor of a subclass of gtk.Dialog. It compiles, but on execution in causes a

core.exception.RangeError@../../../../.dub/packages/gtk-d-3.8.2/gtk-d/generated/gtkd/gtk/Dialog.d(195): Range violation

and thence a -9 exit code.

The constructor assumes the last two parameters are never null, while
that should be allowed.

Re: Example of gtk.Dialog usage?

On 25-05-18 22:48, Mike Wey wrote:

On 25-05-18 20:14, Russel Winder wrote:

Has anyone got an example of using a gtk.Dialog (not one of the
subclasses). I have:

super("Preferences", parent, GtkDialogFlags.DESTROY_WITH_PARENT, 
cast(string[])[], []);

in the constructor of a subclass of gtk.Dialog. It compiles, but on
execution in causes a

core.exception.RangeError@../../../../.dub/packages/gtk-d-3.8.2/gtk-d/generated/gtkd/gtk/Dialog.d(195): 
Range violation

and thence a -9 exit code.

The constructor assumes the last two parameters are never null, while
that should be allowed.

And fixed in:
https://github.com/gtkd-developers/GtkD/commit/627256d9566e4c35365354d5b8b6c43869372374

Re: Example of gtk.Dialog usage?

Will there be a quick release, or do I need to build GtkD from source?

Re: Example of gtk.Dialog usage?

On 27-05-18 11:47, Russel Winder wrote:

Will there be a quick release, or do I need to build GtkD from source?

I've released 3.8.3.

Re: Example of gtk.Dialog usage?

3.8.3 working using Dub.

Hopefully the Debian and Fedora packagers will release quickly.

Thanks for fixing this.