[chronojump] Fixed cancelling before start on pulse



commit 670f5a3c8996f68770db90e2d20957e70d71af6b
Author: Xavier de Blas <xaviblas master gnome org>
Date:   Fri Jun 11 13:46:08 2010 +0800

    Fixed cancelling before start on pulse

 src/execute/pulse.cs |    3 +++
 src/gui/error.cs     |    3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/execute/pulse.cs b/src/execute/pulse.cs
index 1d26833..70707ed 100644
--- a/src/execute/pulse.cs
+++ b/src/execute/pulse.cs
@@ -127,6 +127,9 @@ public class PulseExecute : EventExecute
 
 			//we call again this function
 			confirmWin.Button_accept.Clicked += new EventHandler(callAgainManage);
+			
+			//if confirmWin.Button_cancel is pressed retuen
+			confirmWin.Button_cancel.Clicked += new EventHandler(cancel_event_before_start);
 		} else if (platformState==Chronopic.Plataforma.OFF) {
 			appbar.Push( 1, Catalog.GetString("You are OUT, start when prepared!!") );
 			Util.PlaySound(Constants.SoundTypes.CAN_START, volumeOn);
diff --git a/src/gui/error.cs b/src/gui/error.cs
index 733aa10..634b5ed 100644
--- a/src/gui/error.cs
+++ b/src/gui/error.cs
@@ -42,15 +42,12 @@ public class ErrorWindow
 		Glade.XML gladeXML;
 		gladeXML = Glade.XML.FromAssembly (Util.GetGladePath() + "chronojump.glade", "error_window", null);
 		gladeXML.Autoconnect(this);
-		Console.WriteLine("At error window3");
 		
 		//put an icon to window
 		UtilGtk.IconWindow(error_window);
-		Console.WriteLine("At error window4");
 		
 		label1.Text = text1;
 		label1.UseMarkup = true;
-		Console.WriteLine("At error window5");
 	}
 
 	static public ErrorWindow Show (string text1)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]