diff dynamin/gui/button.d @ 10:ccc108b25a0a

Convert to using a struct for events. Fix some comments too.
author Jordan Miner <jminer7@gmail.com>
date Wed, 15 Jul 2009 21:22:20 -0500
parents aa4efef0f0b1
children 60832e1eef04
line wrap: on
line diff
--- a/dynamin/gui/button.d	Wed Jul 15 14:07:36 2009 -0500
+++ b/dynamin/gui/button.d	Wed Jul 15 21:22:20 2009 -0500
@@ -134,13 +134,13 @@
 	}
 
 public:
-	/// Override this method in a subclass to handle the Clicked event.
+	/// Override this method in a subclass to handle the clicked event.
 	protected void whenClicked(EventArgs e) { }
 	/// This event occurs after the button has been clicked.
-	Event!() clicked;
+	Event!(whenClicked) clicked;
 
 	this() {
-		clicked = new Event!()(&whenClicked);
+		clicked.mainHandler = &whenClicked;
 		_focusable = true;
 	}
 	this(string text) {