On Thu, 5 Jan 2017 22:46:09 +0100, Mike Wey wrote:

On 01/05/2017 09:49 PM, dlang user wrote:

I am trying to implement application.addOnOpen and I am getting stuck trying to work with the "void* files".

Here is the main function for my test app:

...

I am assuming that I am doing something fundamentally wrong here, does anybody see my mistake?

The Gio documentation and the gir files contain the wrong type for
files. I'ts actual type is: GFile**

It should probably be wrapped as an gio.File.File array.

For now you can do:

new gio.File.File((cast(GFile**)files)[0]);

For the first file.

Great, thanks for the fast work around, it worked perfectly.