[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Conversion Lua function to C function
- From: Wesley Smith <wesley.hoke@...>
- Date: Sat, 17 Oct 2009 09:58:09 -0700
I've got a system that allows me to set Lua functions as callback
actions from GtkMenuItems. You can find he code here:
// generic interface:
http://www.mat.ucsb.edu/projects/luaAV/browser/trunk/LuaAV/library/src/LuaAVMenu.cpp
471: int MenuItem :: action(lua_State *L)
// gtk callback system:
http://www.mat.ucsb.edu/projects/luaAV/browser/trunk/LuaAV/library/linux/LuaAVMenuLinux.cpp
93: void MenuBarImpl :: dispatch(MenuItem *mi)
419: void MenuItem :: implEnableAction()
wes