BOOL lggAutoCorrectFloater::postBuild(void) { namesList = getChild<LLScrollListCtrl>("em_ac_list_name"); entryList = getChild<LLScrollListCtrl>("em_ac_list_entry"); childSetCommitCallback("em_ac_enable",onBoxCommitEnabled); childSetCommitCallback("em_ac_list_enabled",onEntrySettingChange); childSetCommitCallback("em_ac_list_show",onEntrySettingChange); childSetCommitCallback("em_ac_list_style",onEntrySettingChange); childSetCommitCallback("em_ac_priority",onEntrySettingChange); updateEnabledStuff(); updateNamesList(); namesList->setCommitOnSelectionChange(TRUE); childSetCommitCallback("em_ac_list_name", onSelectName, this); childSetAction("em_ac_deletelist",removeList,this); childSetAction("em_ac_rementry",deleteEntry,this); childSetAction("em_ac_exportlist",exportList,this); childSetAction("em_ac_addentry",addEntry,this); childSetAction("em_ac_loadlist",loadList,this); LLView *target_view = getChild<LLView>("em_ac_notecard_target"); if(target_view) { if (mNotecardDropTarget)//shouldn't happen { delete mNotecardDropTarget; } mNotecardDropTarget = new InvDropTarget("drop target", target_view->getRect(), ResponseItemDrop);//, mAvatarID); addChild(mNotecardDropTarget); } return true; }