Better processing of the default handler, still needs to chain to old containers for redraw

This commit is contained in:
Miguel de Icaza
2018-01-06 23:12:37 -05:00
parent 7447a81e52
commit c763c808e3
2 changed files with 10 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ namespace Terminal {
public class Dialog : Window {
List<Button> buttons = new List<Button> ();
public Dialog (string title, int width, int height, params Button [] buttons) : base (Application.MakeCenteredRect (new Size (width, height)))
public Dialog (string title, int width, int height, params Button [] buttons) : base (Application.MakeCenteredRect (new Size (width, height)), title)
{
foreach (var b in buttons) {
this.buttons.Add (b);