void ExportGlade(object obj, EventArgs e) { FileChooserDialog dialog = new FileChooserDialog(Catalog.GetString("Export to Glade File"), null, FileChooserAction.Save, Gtk.Stock.Cancel, Gtk.ResponseType.Cancel, Gtk.Stock.Save, Gtk.ResponseType.Ok); int response = dialog.Run(); if (response == (int)Gtk.ResponseType.Ok) { project.ExportGlade(dialog.Filename); } dialog.Hide(); }