From 7505e88db66798b2b8fcdff2d92a7136cd826b5b Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 02:26:30 +0200 Subject: Upgrading to IUP 3.2 - and cleaning up. --- iup/srclua5/il_list.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'iup/srclua5/il_list.c') diff --git a/iup/srclua5/il_list.c b/iup/srclua5/il_list.c index cec844b..b212d87 100755 --- a/iup/srclua5/il_list.c +++ b/iup/srclua5/il_list.c @@ -15,7 +15,7 @@ static int list_dropdown_cb(Ihandle *self, int p0) { lua_State *L = iuplua_call_start(self, "dropdown_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); return iuplua_call(L, 1); } @@ -23,15 +23,15 @@ static int list_action(Ihandle *self, char * p0, int p1, int p2) { lua_State *L = iuplua_call_start(self, "action"); lua_pushstring(L, p0); - lua_pushnumber(L, p1); - lua_pushnumber(L, p2); + lua_pushinteger(L, p1); + lua_pushinteger(L, p2); return iuplua_call(L, 3); } static int list_dblclick_cb(Ihandle *self, int p0, char * p1) { lua_State *L = iuplua_call_start(self, "dblclick_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); lua_pushstring(L, p1); return iuplua_call(L, 2); } @@ -39,7 +39,7 @@ static int list_dblclick_cb(Ihandle *self, int p0, char * p1) static int list_edit_cb(Ihandle *self, int p0, char * p1) { lua_State *L = iuplua_call_start(self, "edit_cb"); - lua_pushnumber(L, p0); + lua_pushinteger(L, p0); lua_pushstring(L, p1); return iuplua_call(L, 2); } -- cgit v1.2.3