summaryrefslogtreecommitdiff
path: root/iup/srclua5/spin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'iup/srclua5/spin.lua')
-rwxr-xr-xiup/srclua5/spin.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/iup/srclua5/spin.lua b/iup/srclua5/spin.lua
index b6e2044..5118a0e 100755
--- a/iup/srclua5/spin.lua
+++ b/iup/srclua5/spin.lua
@@ -3,16 +3,16 @@
------------------------------------------------------------------------------
local ctrl = {
nick = "spin",
- parent = WIDGET,
+ parent = iup.WIDGET,
creation = "",
callback = {
spin_cb = "n",
},
}
-function ctrl.createElement(class, arg)
- return Spin(arg.action)
+function ctrl.createElement(class, param)
+ return iup.Spin(param.action)
end
-iupRegisterWidget(ctrl)
-iupSetClass(ctrl, "iup widget")
+iup.RegisterWidget(ctrl)
+iup.SetClass(ctrl, "iup widget")