# HG changeset patch # User IBBoard # Date 1239291213 0 # Node ID c687bbe901f8af8f91b95255e9da79066d5274da # Parent 5855999a55562d2b7ebdbcd657ee5d13b9693457 Re #37 - Resolve deprecation warnings * Replace SetTooltip methods with TooltipText property * Remove parameter on command to remove deprecation warning Also: * Make sure we copy the COPYING files to the output diff -r 5855999a5556 -r c687bbe901f8 FrmMainWindow.cs --- a/FrmMainWindow.cs Sat Mar 07 15:54:15 2009 +0000 +++ b/FrmMainWindow.cs Thu Apr 09 15:33:33 2009 +0000 @@ -80,12 +80,12 @@ //Replace the undo/redo buttons with menu versions, which Monodevelop's GUI editor doesn't currently support redoMenuButton = new MenuToolButton("gtk-redo"); redoMenuButton.Label = "Redo"; - redoMenuButton.SetTooltip(new Tooltips(), "Redo", ""); + redoMenuButton.TooltipText = "Redo"; redoMenuButton.Clicked+= redoTBButtonActivated; toolbar.Insert(redoMenuButton, CATEGORY_BUTTON_SEPARATOR_INDEX); undoMenuButton = new MenuToolButton("gtk-undo"); undoMenuButton.Label = "Undo"; - undoMenuButton.SetTooltip(new Tooltips(), "Undo", ""); + undoMenuButton.TooltipText = "Undo"; undoMenuButton.Clicked+= undoTBButtonActivated; toolbar.Insert(undoMenuButton, CATEGORY_BUTTON_SEPARATOR_INDEX); toolbar.Remove(toolbar.Children[CATEGORY_BUTTON_SEPARATOR_INDEX-1]); @@ -410,7 +410,7 @@ if (response==ResponseType.Ok) { - CreateAndAddUnitCommand cmd = new CreateAndAddUnitCommand(newUnit.SelectedUnit, cat, WarFoundryCore.CurrentArmy); + CreateAndAddUnitCommand cmd = new CreateAndAddUnitCommand(newUnit.SelectedUnit, WarFoundryCore.CurrentArmy); commandStack.Execute(cmd); } @@ -575,7 +575,7 @@ { ToolButton button = new ToolButton("gtk-add"); button.Label = cat.Name; - button.SetTooltip(new Tooltips(), "Add unit from "+cat.Name, ""); + button.TooltipText = "Add unit from "+cat.Name; //TODO: See if we can associate data in some way, the same as we can with SWF. For now we just use the map. categoryMap.Add(button, cat); button.Clicked+= new System.EventHandler(OnAddUnitActivated); diff -r 5855999a5556 -r c687bbe901f8 IBBoard.WarFoundry.GUI.GTK.csproj --- a/IBBoard.WarFoundry.GUI.GTK.csproj Sat Mar 07 15:54:15 2009 +0000 +++ b/IBBoard.WarFoundry.GUI.GTK.csproj Thu Apr 09 15:33:33 2009 +0000 @@ -9,8 +9,8 @@ WinExe Properties IBBoard.WarFoundry.GUI.GTK - - + IBBoard.WarFoundry.GTK.FrmMainWindow + App.ico true @@ -20,12 +20,7 @@ DEBUG;TRACE prompt 4 - - - WarFoundryGTK - IBBoard.WarFoundry.GTK.FrmMainWindow - App.ico pdbonly @@ -35,8 +30,6 @@ prompt 4 IBBoard.WarFoundry.GUI.GTK - IBBoard.WarFoundry.GTK.FrmMainWindow - App.ico