Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.GTK
changeset 78:e63209ab2cfa
Re #86: Complete initial GTK# UI
* Make sure that undo/redo are not sensitive on first opening app
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 18 Dec 2010 16:46:16 +0000 |
parents | 68804784bf6f |
children | 592930d28da4 |
files | FrmMainWindow.cs |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/FrmMainWindow.cs Sat Dec 18 16:42:51 2010 +0000 +++ b/FrmMainWindow.cs Sat Dec 18 16:46:16 2010 +0000 @@ -108,11 +108,13 @@ redoMenuButton.Label = "Redo"; redoMenuButton.TooltipText = "Redo"; redoMenuButton.Clicked += redoTBButtonActivated; + redoMenuButton.Sensitive = false; toolbar.Insert(redoMenuButton, CATEGORY_BUTTON_SEPARATOR_INDEX); undoMenuButton = new MenuToolButton("gtk-undo"); undoMenuButton.Label = "Undo"; undoMenuButton.TooltipText = "Undo"; undoMenuButton.Clicked += undoTBButtonActivated; + undoMenuButton.Sensitive = false; toolbar.Insert(undoMenuButton, CATEGORY_BUTTON_SEPARATOR_INDEX); toolbar.Remove(toolbar.Children[CATEGORY_BUTTON_SEPARATOR_INDEX - 1]); toolbar.Remove(toolbar.Children[CATEGORY_BUTTON_SEPARATOR_INDEX - 2]);