Bizarre compile error in GtkD

Mike Wey via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 30 11:43:11 PDT 2014


On 06/30/2014 01:32 PM, Chris wrote:
> Dunno if it's the ResponseType vs GtkResponseType

ResponseType is an alias for GtkReponseType, so that isn't the problem.

getParentWindow() returns an gdk.Window.Window while the 
FileChooserDialog constructor expects an gtk.Window.Window.

you probably want to use:
cast(gtk.Window.Window)(editor.drawingArea.getToplevel())
if you don't have access to the variable holding your main window.

-- 
Mike Wey


More information about the Digitalmars-d-learn mailing list