changeset 40:7c15adc333ea

* Remove "Cancel" button to make the simple dialog button an OK-only dialog
author IBBoard <dev@ibboard.co.uk>
date Wed, 19 Oct 2011 20:29:14 +0100
parents 35b88b848524
children 122a93b48f3d
files SimpleDialog.cs
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/SimpleDialog.cs	Tue Oct 18 20:58:49 2011 +0100
     1.2 +++ b/SimpleDialog.cs	Wed Oct 19 20:29:14 2011 +0100
     1.3 @@ -14,8 +14,8 @@
     1.4  	{
     1.5  		public SimpleDialog(string title, Window parent, DialogFlags flags, params Bin[] widgets) : base(title, parent, flags)
     1.6  		{
     1.7 -			this.AddButton("Ok", ResponseType.Ok);
     1.8  			this.Build();
     1.9 +			ActionArea.Remove(this.ActionArea.Children[1]);
    1.10  			foreach (Bin item in widgets)
    1.11  			{
    1.12  				VBox.PackEnd(item);