public Gtk.FileChooserDialog CreateChooser (string title, FileChooserAction action)
{
var chooser = new Gtk.FileChooserDialog (title, this.Window, action) {
DefaultResponse = ResponseType.Ok
};
chooser.AddButton (Stock.Cancel, ResponseType.Cancel);
chooser.AddFilter (GtkUtilities.GetFileFilter (Catalog.GetString ("PDF Documents"), new string [] {"pdf"}));
chooser.AddFilter (GtkUtilities.GetFileFilter (Catalog.GetString ("All Files"), new string [] {"*"}));
var dirs = new string [] { "DOWNLOAD", "DOCUMENTS" }.Select (s => GetXdgDir (s))
.Where (d => d != null)
.ToArray ();
Hyena.Gui.GtkUtilities.SetChooserShortcuts (chooser, dirs);
return chooser;
}