mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
cc_frm_header.cpp/h: remove CTextBox types for title allignment
Title object has only width of current text content. This causes CTextBox types have not a really visible effect. Now we have only three align types for title and these are related to cc-text object position. Involved classes adjusted too.
This commit is contained in:
@@ -221,10 +221,10 @@ int CLuaInstCCWindow::CCWindowSetCaption(lua_State *L)
|
||||
std::string name = "";
|
||||
tableLookup(L, "name", name) || tableLookup(L, "title", name) || tableLookup(L, "caption", name);
|
||||
|
||||
lua_Integer alignment = (lua_Integer)CTextBox::NO_AUTO_LINEBREAK;
|
||||
lua_Integer alignment = (lua_Integer)DEFAULT_TITLE_ALIGN;
|
||||
tableLookup(L, "alignment", alignment);
|
||||
|
||||
D->w->setWindowCaption(name, alignment);
|
||||
D->w->setWindowCaption(name, (cc_title_alignment_t)alignment);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -29,7 +29,7 @@ class CLuaCCWindow
|
||||
~CLuaCCWindow() { delete w; }
|
||||
};
|
||||
|
||||
class CLuaInstCCWindow
|
||||
class CLuaInstCCWindow : CCHeaderTypes
|
||||
{
|
||||
public:
|
||||
CLuaInstCCWindow() {};
|
||||
|
Reference in New Issue
Block a user