Renamed handleScreenChanged() -> reflowLayout() in the GUI code
svn-id: r23662
This commit is contained in:
parent
ca7880df6c
commit
1a10cacfb9
23 changed files with 60 additions and 60 deletions
|
@ -56,10 +56,10 @@ enum {
|
|||
// HACK. FIXME. This doesn't belong here. But otherwise it creates compilation problems
|
||||
GuiObject::GuiObject(const Common::String &name) : _firstWidget(0) {
|
||||
_name = name;
|
||||
handleScreenChanged();
|
||||
reflowLayout();
|
||||
}
|
||||
|
||||
void GuiObject::handleScreenChanged() {
|
||||
void GuiObject::reflowLayout() {
|
||||
if (!_name.empty()) {
|
||||
if ((_x = g_gui.evaluator()->getVar(_name + ".x")) == EVAL_UNDEF_VAR)
|
||||
error("Undefined variable %s.x", _name.c_str());
|
||||
|
@ -262,7 +262,7 @@ void NewGui::runLoop() {
|
|||
_theme->refresh();
|
||||
// refresh all dialogs
|
||||
for (int i = 0; i < _dialogStack.size(); ++i) {
|
||||
_dialogStack[i]->handleScreenChanged();
|
||||
_dialogStack[i]->reflowLayout();
|
||||
}
|
||||
// We need to redraw immediately. Otherwise
|
||||
// some other event may cause a widget to be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue