summaryrefslogtreecommitdiff
path: root/Plugins/skins/SkinLib/SkinnedDialog.cpp
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-01-24 17:15:14 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-01-24 17:15:14 +0000
commitff31a97b260e955c7af6b88fe4d606282160073d (patch)
tree0947e28235d7e773803039d41316eefea3b8eb02 /Plugins/skins/SkinLib/SkinnedDialog.cpp
parentde4ef8a65afd0c38f8bbdfcb3b90ff82a98d1483 (diff)
skins: 0.0.0.2
* Fix for float numbers + Added valign (not used yet) + Added dialog info (allow clients to set script variables starting with info) + The zip will contain also the pdbs (at least until it is more stable) git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@134 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/skins/SkinLib/SkinnedDialog.cpp')
-rw-r--r--Plugins/skins/SkinLib/SkinnedDialog.cpp21
1 files changed, 1 insertions, 20 deletions
diff --git a/Plugins/skins/SkinLib/SkinnedDialog.cpp b/Plugins/skins/SkinLib/SkinnedDialog.cpp
index a6a3b2b..f8dfb04 100644
--- a/Plugins/skins/SkinLib/SkinnedDialog.cpp
+++ b/Plugins/skins/SkinLib/SkinnedDialog.cpp
@@ -112,7 +112,7 @@ DialogState * SkinnedDialog::getState()
return NULL;
state = Dialog::createState();
- if (!script->run(state, opts))
+ if (!script->run(state, opts, getInfo()))
{
releaseState();
return NULL;
@@ -139,25 +139,6 @@ void SkinnedDialog::releaseState()
state = NULL;
}
-DialogState * SkinnedDialog::createState(const TCHAR *text, MessageCallback errorCallback, void *errorCallbackParam)
-{
- V8Script script;
- script.setExceptionCallback(errorCallback, errorCallbackParam);
-
- if (!script.compile(text, this))
- return NULL;
-
- DialogState *state = Dialog::createState();
- if (!script.run(state, opts))
- {
- delete state;
- return NULL;
- }
-
- return state;
-}
-
-
bool SkinnedDialog::fileChanged()
{
if (filename.size() <= 0)