# HG changeset patch # User IBBoard # Date 1319052554 -3600 # Node ID 7c15adc333eaeea511c0319e4c7948f1af399a89 # Parent 35b88b8485241b8a8d7d00a6ae22a80f8f76804e * Remove "Cancel" button to make the simple dialog button an OK-only dialog diff -r 35b88b848524 -r 7c15adc333ea SimpleDialog.cs --- a/SimpleDialog.cs Tue Oct 18 20:58:49 2011 +0100 +++ b/SimpleDialog.cs Wed Oct 19 20:29:14 2011 +0100 @@ -14,8 +14,8 @@ { public SimpleDialog(string title, Window parent, DialogFlags flags, params Bin[] widgets) : base(title, parent, flags) { - this.AddButton("Ok", ResponseType.Ok); this.Build(); + ActionArea.Remove(this.ActionArea.Children[1]); foreach (Bin item in widgets) { VBox.PackEnd(item);