diff dynamin/gui/list_box.d @ 83:3cfc83a99cbc

Add List.opIndexAssign and switch to one callback for change notification. Also, update controls to work with the new API.
author Jordan Miner <jminer7@gmail.com>
date Sun, 18 Jul 2010 22:20:50 -0500
parents 651082a9b364
children 73060bc3f004
line wrap: on
line diff
--- a/dynamin/gui/list_box.d	Sat Jul 17 16:54:09 2010 -0500
+++ b/dynamin/gui/list_box.d	Sun Jul 18 22:20:50 2010 -0500
@@ -83,7 +83,7 @@
 	/// This event occurs after the selection has changed.
 	Event!(whenSelectionChanged) selectionChanged;
 
-	void whenListItemsChanged(string, int) {
+	void whenListItemsChanged(ListChangeType, string, string, uint) {
 		super.layout();
 		repaint();
 	}
@@ -91,7 +91,7 @@
 	///
 	this() {
 		selectionChanged.setUp(&whenSelectionChanged);
-		_items = new List!(string, true)(&whenListItemsChanged, &whenListItemsChanged);
+		_items = new List!(string, true)(&whenListItemsChanged);
 
 		super();
 		_focusable = true;