diff dynamin/gui/scroll_bar.d @ 78:651082a9b364

Add Event.setUp() and use in place of mainHandler and dispatcher.
author Jordan Miner <jminer7@gmail.com>
date Sat, 06 Feb 2010 15:12:52 -0600
parents ccc108b25a0a
children 73060bc3f004
line wrap: on
line diff
--- a/dynamin/gui/scroll_bar.d	Sat Feb 06 15:11:57 2010 -0600
+++ b/dynamin/gui/scroll_bar.d	Sat Feb 06 15:12:52 2010 -0600
@@ -69,7 +69,7 @@
 	// stores the location of the thumb as a percentage of the track
 	real _thumbPos;
 	this() {
-		valueChanged.mainHandler = &whenValueChanged;
+		valueChanged.setUp(&whenValueChanged);
 
 		_track1 = new ScrollBarTrack;
 		_track2 = new ScrollBarTrack;