summaryrefslogtreecommitdiff
path: root/iup/srclua5/il_tree.c
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
committerPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
commiteed0eb6a476d54ce19aeff137984aa981d9e3976 (patch)
tree807891636efd2f87dcbd261e971216269973ae07 /iup/srclua5/il_tree.c
parentccc8261e4d48de89da4ddfe7b55e378ae0cd6f47 (diff)
Upgrading to iup 3.1
Diffstat (limited to 'iup/srclua5/il_tree.c')
-rwxr-xr-xiup/srclua5/il_tree.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/iup/srclua5/il_tree.c b/iup/srclua5/il_tree.c
index 16168d3..4ddc1a4 100755
--- a/iup/srclua5/il_tree.c
+++ b/iup/srclua5/il_tree.c
@@ -45,17 +45,17 @@ static int tree_rename_cb(Ihandle *self, int p0, char * p1)
return iuplua_call(L, 2);
}
-static int tree_renamenode_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, "renamenode_cb");
+ lua_State *L = iuplua_call_start(self, "multiunselection_cb");
lua_pushnumber(L, p0);
- lua_pushstring(L, p1);
+ lua_pushnumber(L, p1);
return iuplua_call(L, 2);
}
-static int tree_showrename_cb(Ihandle *self, int p0)
+static int tree_rightclick_cb(Ihandle *self, int p0)
{
- lua_State *L = iuplua_call_start(self, "showrename_cb");
+ lua_State *L = iuplua_call_start(self, "rightclick_cb");
lua_pushnumber(L, p0);
return iuplua_call(L, 1);
}
@@ -82,19 +82,18 @@ static int tree_executeleaf_cb(Ihandle *self, int p0)
return iuplua_call(L, 1);
}
-static int tree_rightclick_cb(Ihandle *self, int p0)
+static int tree_showrename_cb(Ihandle *self, int p0)
{
- lua_State *L = iuplua_call_start(self, "rightclick_cb");
+ lua_State *L = iuplua_call_start(self, "showrename_cb");
lua_pushnumber(L, p0);
return iuplua_call(L, 1);
}
-static int tree_noderemoved_cb(Ihandle *self, int p0, char * p1)
+static int tree_noderemoved_cb(Ihandle *self, char * p0)
{
lua_State *L = iuplua_call_start(self, "noderemoved_cb");
- lua_pushnumber(L, p0);
- lua_pushstring(L, p1);
- return iuplua_call(L, 2);
+ lua_pushstring(L, p0);
+ return iuplua_call(L, 1);
}
static int Tree(lua_State *L)
@@ -115,12 +114,12 @@ int iuptreelua_open(lua_State * L)
iuplua_register_cb(L, "SELECTION_CB", (lua_CFunction)tree_selection_cb, NULL);
iuplua_register_cb(L, "DRAGDROP_CB", (lua_CFunction)tree_dragdrop_cb, NULL);
iuplua_register_cb(L, "RENAME_CB", (lua_CFunction)tree_rename_cb, NULL);
- iuplua_register_cb(L, "RENAMENODE_CB", (lua_CFunction)tree_renamenode_cb, NULL);
- iuplua_register_cb(L, "SHOWRENAME_CB", (lua_CFunction)tree_showrename_cb, NULL);
+ iuplua_register_cb(L, "MULTIUNSELECTION_CB", (lua_CFunction)tree_multiunselection_cb, NULL);
+ iuplua_register_cb(L, "RIGHTCLICK_CB", (lua_CFunction)tree_rightclick_cb, NULL);
iuplua_register_cb(L, "MULTISELECTION_CB", (lua_CFunction)tree_multiselection_cb, NULL);
iuplua_register_cb(L, "BRANCHCLOSE_CB", (lua_CFunction)tree_branchclose_cb, NULL);
iuplua_register_cb(L, "EXECUTELEAF_CB", (lua_CFunction)tree_executeleaf_cb, NULL);
- iuplua_register_cb(L, "RIGHTCLICK_CB", (lua_CFunction)tree_rightclick_cb, NULL);
+ iuplua_register_cb(L, "SHOWRENAME_CB", (lua_CFunction)tree_showrename_cb, NULL);
iuplua_register_cb(L, "NODEREMOVED_CB", (lua_CFunction)tree_noderemoved_cb, NULL);
iuplua_treefuncs_open(L);