In widgets rename all the addEventListener calls to on.

Some minor fixes in cpp, css, xml and html syntax highlighters.
This commit is contained in:
Martín Lucas Golini
2025-10-03 21:12:08 -03:00
parent c585e1761b
commit 7dde5826c7
66 changed files with 514 additions and 605 deletions

View File

@@ -530,7 +530,7 @@ UIWindow* UIPluginManager::New( UISceneNode* sceneNode, PluginManager* manager,
prefs->setEnabled( enabled && plugin->hasFileConfig() );
}
};
tv->addEventListener( Event::OnClose, [manager, tv]( const Event* ) {
tv->on( Event::OnClose, [manager, tv]( const Event* ) {
if ( tv->readyCbs.empty() )
return;
for ( const auto& cb : tv->readyCbs ) {