What is the equivalent function of fileChooserDialogNew with gi-gtk

182 views Asked by At

I'm making a GTK interface with gi-gtk for a Haskell program and I would like to create a dialog to seek for files. In the gtk2hs, there was a function called fileChooserDialogNew which was creating this kind a dialog but I didn't find an equivalent function with gi-gtk.

What is the correct way to create a such dialog with gi-gtk ?

1

There are 1 answers

0
Daniel Wagner On

I'm pretty sure you write new FileChooserDialog [], though I don't have an install lying around to test right now. The third argument lets you set initial values for properties.

See the documentation for some discussion of what to put in [], and maybe the haddocks for new, though I personally found the latter only mildly enlightening.