From 31c6b829d7fe618594f5830ebfda3ba53826cce4 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Sun, 23 Feb 2014 20:59:46 +0100 Subject: [PATCH] CLuaInstance: Rename componentstext to ctext - Better readability and consistent designation - Still not a problem since API not yet public Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/9184ac6266a0419910a46480a4de28a710d619c4 Author: Michael Liebmann Date: 2014-02-23 (Sun, 23 Feb 2014) --- src/gui/luainstance.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/luainstance.cpp b/src/gui/luainstance.cpp index 699b2ba21..046f783de 100644 --- a/src/gui/luainstance.cpp +++ b/src/gui/luainstance.cpp @@ -1490,7 +1490,7 @@ int CLuaInstance::SignalBoxDelete(lua_State *L) CLuaComponentsText *CLuaInstance::ComponentsTextCheck(lua_State *L, int n) { - return *(CLuaComponentsText **) luaL_checkudata(L, n, "componentstext"); + return *(CLuaComponentsText **) luaL_checkudata(L, n, "ctext"); } void CLuaInstance::ComponentsTextRegister(lua_State *L) @@ -1504,11 +1504,11 @@ void CLuaInstance::ComponentsTextRegister(lua_State *L) { NULL, NULL } }; - luaL_newmetatable(L, "componentstext"); + luaL_newmetatable(L, "ctext"); luaL_setfuncs(L, meth, 0); lua_pushvalue(L, -1); lua_setfield(L, -1, "__index"); - lua_setglobal(L, "componentstext"); + lua_setglobal(L, "ctext"); } int CLuaInstance::ComponentsTextNew(lua_State *L) @@ -1564,7 +1564,7 @@ int CLuaInstance::ComponentsTextNew(lua_State *L) CLuaComponentsText **udata = (CLuaComponentsText **) lua_newuserdata(L, sizeof(CLuaComponentsText *)); *udata = new CLuaComponentsText(); (*udata)->ct = new CComponentsText(x, y, dx, dy, text, mode, g_Font[font_text], has_shadow, (fb_pixel_t)color_text, (fb_pixel_t)color_frame, (fb_pixel_t)color_body, (fb_pixel_t)color_shadow); - luaL_getmetatable(L, "componentstext"); + luaL_getmetatable(L, "ctext"); lua_setmetatable(L, -2); return 1; }