Skip to content

Commit

Permalink
LJUCEApplication: initialised pushes the initialised DocumentWindow t…
Browse files Browse the repository at this point in the history
…o callback
  • Loading branch information
Christophe Berbizier (dbdl) committed Mar 14, 2014
1 parent 6be9811 commit d47be3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Source/LJUCEApplication.cpp
Expand Up @@ -140,9 +140,10 @@ int LJUCEApplication::s_globalApplicationsDirectory(lua_State*) {
return LUA::returnString( File::getSpecialLocation(File::globalApplicationsDirectory).getFullPathName() );
}

void LJUCEApplication::initialised() {
if(hasCallback("initialised"))
callback("initialised");
void LJUCEApplication::initialised(Component *comp) {
if(hasCallback("initialised")) {
callback("initialised", 0, { new LRefBase("Component", comp) });
}
}
int LJUCEApplication::initialised(lua_State*) {
set("initialised");
Expand Down
2 changes: 1 addition & 1 deletion Source/LJUCEApplication.h
Expand Up @@ -28,7 +28,7 @@ class LJUCEApplication : public LBase,
* initialised is usefull to start actions after the window has shown,
* particularly on iOS or OSX, as events oriented architectures
*/
virtual void initialised();
virtual void initialised(Component*);
int initialised(lua_State*);

static int s_userHomeDirectory(lua_State*);
Expand Down

0 comments on commit d47be3f

Please sign in to comment.