public GladeDialog(Window parentWindow, string dialogName) : base(dialogName) { dialog = (Dialog)base.Window; dialog.Modal = true; dialog.WindowPosition = WindowPosition.CenterOnParent; dialog.TransientFor = parentWindow; // Dialog button order is reversed on windows if (Environment.OSVersion.Platform != PlatformID.Unix) { if (dialog.ActionArea != null) { HButtonBox box = dialog.ActionArea; int count = 0; foreach (Widget widget in box.AllChildren) { box.ReorderChild(widget, ++count); } } } }