file_chooser_new

@accepts(utf8, Gtk.Window, Gtk.FileChooserAction, gboolean)
@returns(Gtk.Widget)
def file_chooser_new(title, parent, action, local_only)

Creates and shows a regular gtk+ file chooser dialog with a given title. The user's music directory (typically ~/Music) is added as a shortcut.

For consistency, this should be used anywhere a file chooser is required.

After creating the dialog, the caller should connect a handler to its 'response' signal to process the user's selected files or folders.

title :

title for the file chooser

parent :

parent GtkWindow for the file chooser

action :

the GtkFileChooserAction

local_only :

if TRUE, don't show network locations

Returns :

the file chooser GtkWidget