Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

FileChooserDialogNew #105

Open
shawnl opened this issue Mar 22, 2015 · 1 comment
Open

FileChooserDialogNew #105

shawnl opened this issue Mar 22, 2015 · 1 comment

Comments

@shawnl
Copy link

shawnl commented Mar 22, 2015

no support for FileChooserDialogNew

@juanfgs
Copy link

juanfgs commented Apr 6, 2015

You can use a Dialog and added the FileChooser widget inside the content box:

dialog, err := gtk.DialogNew()
filechooser, err := gtk.FileChooserWidgetNew(gtk.FILE_CHOOSER_ACTION_OPEN)
dialog.AddButton("Share", gtk.RESPONSE_ACCEPT)
dialog.AddButton("Cancel", gtk.RESPONSE_CANCEL)
dialog.SetTitle("Share files")
box, err := dialog.GetContentArea()
box.Add(filechooser)
box.ShowAll()

or FileChooserButtonNew to use the standard Gtk3 File Chooser button (will look better on Gnome 3 environment but I think it doesn't have support for multiple file selection).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants