diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 02:26:30 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 02:32:26 +0200 |
commit | 7505e88db66798b2b8fcdff2d92a7136cd826b5b (patch) | |
tree | b6ced565318f8e8112e35cb0ad53abe4212ef8de /iup/srclua5/il_tree.c | |
parent | e9a184546b18cf3b796bd560561f312934004c54 (diff) |
Upgrading to IUP 3.2 - and cleaning up.
Diffstat (limited to 'iup/srclua5/il_tree.c')
-rwxr-xr-x | iup/srclua5/il_tree.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/iup/srclua5/il_tree.c b/iup/srclua5/il_tree.c index 4ddc1a4..9828397 100755 --- a/iup/srclua5/il_tree.c +++ b/iup/srclua5/il_tree.c @@ -15,32 +15,32 @@ static int tree_branchopen_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "branchopen_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call(L, 1); } static int tree_selection_cb(Ihandle *self, int p0, int p1) { lua_State *L = iuplua_call_start(self, "selection_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); return iuplua_call(L, 2); } static int tree_dragdrop_cb(Ihandle *self, int p0, int p1, int p2, int p3) { lua_State *L = iuplua_call_start(self, "dragdrop_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); - lua_pushnumber(L, p2); - lua_pushnumber(L, p3); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); + lua_pushinteger(L, p2); + lua_pushinteger(L, p3); return iuplua_call(L, 4); } static int tree_rename_cb(Ihandle *self, int p0, char * p1) { lua_State *L = iuplua_call_start(self, "rename_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); lua_pushstring(L, p1); return iuplua_call(L, 2); } @@ -48,44 +48,44 @@ static int tree_rename_cb(Ihandle *self, int p0, char * p1) static int tree_multiunselection_cb(Ihandle *self, int p0, int p1) { lua_State *L = iuplua_call_start(self, "multiunselection_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); return iuplua_call(L, 2); } static int tree_rightclick_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "rightclick_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call(L, 1); } static int tree_multiselection_cb(Ihandle *self, int p0, int p1) { lua_State *L = iuplua_call_start(self, "multiselection_cb"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); return iuplua_call(L, 2); } static int tree_branchclose_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "branchclose_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call(L, 1); } static int tree_executeleaf_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "executeleaf_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call(L, 1); } static int tree_showrename_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "showrename_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call(L, 1); } |