summaryrefslogtreecommitdiff
path: root/server/src/server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/server.cc')
-rw-r--r--server/src/server.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/server.cc b/server/src/server.cc
index f75aeab..0eeec43 100644
--- a/server/src/server.cc
+++ b/server/src/server.cc
@@ -65,9 +65,9 @@ static std::string error_box(std::string message)
"<pracro version=\"1.0\">\n"
" <template name=\"error\">\n"
" <macro name=\"error\" static=\"true\">\n"
- " <window caption=\"ERROR!\" layout=\"vbox\" name=\"error\">\n"
+ " <widgets caption=\"ERROR!\" layout=\"vbox\" name=\"error\">\n"
" <textedit name=\"errorlabel\" value=\"" + message + "\"/>\n"
- " </window>\n"
+ " </widgets>\n"
" </macro>\n"
" </template>\n"
"</pracro>\n";
@@ -173,7 +173,7 @@ static std::string handleRequest(Transaction *transaction,
MacroParser mp(macrolist.getLatestVersion(macro.attributes["name"]));
mp.parse();
Macro *m = mp.getMacro();
- answer += " caption=\"" + m->window.attributes["caption"] + "\"";
+ answer += " caption=\"" + m->widgets.attributes["caption"] + "\"";
answer += ">\n";
LUAQueryMapper lqm;
@@ -225,7 +225,7 @@ static std::string handleRequest(Transaction *transaction,
MacroParser mp(macrolist.getLatestVersion(macro.attributes["name"]));
mp.parse();
Macro *m = mp.getMacro();
- answer += " caption=\"" + m->window.attributes["caption"] + "\"";
+ answer += " caption=\"" + m->widgets.attributes["caption"] + "\"";
answer += ">\n";
}