protected virtual void OnButtonBrowseClicked(object sender, System.EventArgs e)
{
FileChooserDialog dlg = new FileChooserDialog ("Select Folder", this, FileChooserAction.SelectFolder);
try {
dlg.AddButton (Gtk.Stock.Cancel, Gtk.ResponseType.Cancel);
dlg.AddButton (Gtk.Stock.Open, Gtk.ResponseType.Ok);
dlg.SetFilename (Environment.GetFolderPath (Environment.SpecialFolder.Personal));
if (dlg.Run () == (int) ResponseType.Ok) {
pathEntry.Text = dlg.Filename;
}
} finally {
dlg.Destroy ();
}
}