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 diff
     1.1 --- a/FrmMainWindow.cs	Sat Dec 18 16:42:51 2010 +0000
     1.2 +++ b/FrmMainWindow.cs	Sat Dec 18 16:46:16 2010 +0000
     1.3 @@ -108,11 +108,13 @@
     1.4  			redoMenuButton.Label = "Redo";
     1.5  			redoMenuButton.TooltipText = "Redo";
     1.6  			redoMenuButton.Clicked += redoTBButtonActivated;
     1.7 +			redoMenuButton.Sensitive = false;
     1.8  			toolbar.Insert(redoMenuButton, CATEGORY_BUTTON_SEPARATOR_INDEX);
     1.9  			undoMenuButton = new MenuToolButton("gtk-undo");
    1.10  			undoMenuButton.Label = "Undo";
    1.11  			undoMenuButton.TooltipText = "Undo";
    1.12  			undoMenuButton.Clicked += undoTBButtonActivated;
    1.13 +			undoMenuButton.Sensitive = false;
    1.14  			toolbar.Insert(undoMenuButton, CATEGORY_BUTTON_SEPARATOR_INDEX);
    1.15  			toolbar.Remove(toolbar.Children[CATEGORY_BUTTON_SEPARATOR_INDEX - 1]);
    1.16  			toolbar.Remove(toolbar.Children[CATEGORY_BUTTON_SEPARATOR_INDEX - 2]);