[MonoDevelop] TipOfTheDay.cs Patch

Carlos Prado García carlos.prado@hispalinux.es
Fri, 27 Feb 2004 17:28:11 +0100


--=-udhVNKD8uB/1Q0cC+xAc
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

This patch corrects the behavior of the CheckBox "noshowCheckButton"
that was wrong.

This patch is for the r1018 release.


PD: Sorry, my english is very bad.

--=-udhVNKD8uB/1Q0cC+xAc
Content-Disposition: attachment; filename=TipOfTheDay.cs.patch
Content-Type: text/x-patch; name=TipOfTheDay.cs.patch; charset=iso-8859-15
Content-Transfer-Encoding: 7bit

--- MonoDevelop/src/Main/Base/Gui/Dialogs/TipOfTheDay.cs	2004-02-27 16:56:16.000000000 +0100
+++ ../projects/MonoDevelop/src/Main/Base/Gui/Dialogs/TipOfTheDay.cs	2004-02-27 17:00:12.000000000 +0100
@@ -42,7 +42,7 @@
 					
 			tipOfTheDayWindow.TypeHint = Gdk.WindowTypeHint.Dialog;
 
-			noshowCheckbutton.Active = propertyService.GetProperty ("ICSharpCode.SharpDevelop.Gui.Dialog.TipOfTheDayView.ShowTipsAtStartup", true);
+			noshowCheckbutton.Active = !propertyService.GetProperty ("ICSharpCode.SharpDevelop.Gui.Dialog.TipOfTheDayView.ShowTipsAtStartup", true);
 			noshowCheckbutton.Toggled += new EventHandler (OnNoshow);
 			nextButton.Clicked += new EventHandler (OnNext);
 			closeButton.Clicked += new EventHandler (OnClose);
@@ -74,7 +74,7 @@
 		public void OnNoshow (object obj, EventArgs args)
 		{
 			propertyService.SetProperty ("ICSharpCode.SharpDevelop.Gui.Dialog.TipOfTheDayView.ShowTipsAtStartup",
-						    noshowCheckbutton.Active);
+						    !noshowCheckbutton.Active);
 		}
 
 		public void OnNext (object obj, EventArgs args)

--=-udhVNKD8uB/1Q0cC+xAc--