mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
CLuaInstance: Display warning when using a obsolete parameter...
...in cwindow/ctext/cpicture:hide()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 75631a97f1
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-28 (Mon, 28 Dec 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -148,15 +148,12 @@ int CLuaInstCCPicture::CCPictureHide(lua_State *L)
|
||||
lua_assert(lua_istable(L,1));
|
||||
CLuaCCPicture *D = CCPictureCheck(L, 1);
|
||||
if (!D) return 0;
|
||||
#if 0
|
||||
bool no_restore = false;
|
||||
if (!tableLookup(L, "no_restore", no_restore)) {
|
||||
std::string tmp = "false";
|
||||
if (tableLookup(L, "no_restore", tmp))
|
||||
paramBoolDeprecated(L, tmp.c_str());
|
||||
no_restore = (tmp == "true" || tmp == "1" || tmp == "yes");
|
||||
}
|
||||
#endif
|
||||
|
||||
bool tmp1 = false;
|
||||
std::string tmp2 = "false";
|
||||
if ((tableLookup(L, "no_restore", tmp1)) || (tableLookup(L, "no_restore", tmp2)))
|
||||
printf("[%s:hide] Warning, obsolete parameter in use, please remove!\n", "cpicture");
|
||||
|
||||
if (D->parent) {
|
||||
D->cp->setPicture("");
|
||||
D->cp->paint();
|
||||
|
@@ -173,15 +173,12 @@ int CLuaInstCCText::CCTextHide(lua_State *L)
|
||||
lua_assert(lua_istable(L,1));
|
||||
CLuaCCText *D = CCTextCheck(L, 1);
|
||||
if (!D) return 0;
|
||||
#if 0
|
||||
bool no_restore = false;
|
||||
if (!tableLookup(L, "no_restore", no_restore)) {
|
||||
std::string tmp = "false";
|
||||
if (tableLookup(L, "no_restore", tmp))
|
||||
paramBoolDeprecated(L, tmp.c_str());
|
||||
no_restore = (tmp == "true" || tmp == "1" || tmp == "yes");
|
||||
}
|
||||
#endif
|
||||
|
||||
bool tmp1 = false;
|
||||
std::string tmp2 = "false";
|
||||
if ((tableLookup(L, "no_restore", tmp1)) || (tableLookup(L, "no_restore", tmp2)))
|
||||
printf("[%s:hide] Warning, obsolete parameter in use, please remove!\n", "ctext");
|
||||
|
||||
if (D->parent) {
|
||||
D->ct->setText("", D->mode, g_Font[D->font_text]);
|
||||
D->ct->paint();
|
||||
|
@@ -196,15 +196,12 @@ int CLuaInstCCWindow::CCWindowHide(lua_State *L)
|
||||
lua_assert(lua_istable(L,1));
|
||||
CLuaCCWindow *D = CCWindowCheck(L, 1);
|
||||
if (!D) return 0;
|
||||
#if 0
|
||||
bool no_restore = false;
|
||||
if (!tableLookup(L, "no_restore", no_restore)) {
|
||||
std::string tmp = "false";
|
||||
if (tableLookup(L, "no_restore", tmp))
|
||||
paramBoolDeprecated(L, tmp.c_str());
|
||||
no_restore = (tmp == "true" || tmp == "1" || tmp == "yes");
|
||||
}
|
||||
#endif
|
||||
|
||||
bool tmp1 = false;
|
||||
std::string tmp2 = "false";
|
||||
if ((tableLookup(L, "no_restore", tmp1)) || (tableLookup(L, "no_restore", tmp2)))
|
||||
printf("[%s:hide] Warning, obsolete parameter in use, please remove!\n", "cwindow");
|
||||
|
||||
D->w->hide();
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user