comparison dynamin/gui/list_box.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 c138461bf845
children 3cfc83a99cbc
comparison
equal deleted inserted replaced
77:c9a4850926d9 78:651082a9b364
88 repaint(); 88 repaint();
89 } 89 }
90 90
91 /// 91 ///
92 this() { 92 this() {
93 selectionChanged.mainHandler = &whenSelectionChanged; 93 selectionChanged.setUp(&whenSelectionChanged);
94 _items = new List!(string, true)(&whenListItemsChanged, &whenListItemsChanged); 94 _items = new List!(string, true)(&whenListItemsChanged, &whenListItemsChanged);
95 95
96 super(); 96 super();
97 _focusable = true; 97 _focusable = true;
98 // TODO: hack 98 // TODO: hack