Mercurial > repos > IBBoard.GtkSharp
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 wrap: on
line diff
--- 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);