diff options
author | deva <deva> | 2008-09-19 15:02:48 +0000 |
---|---|---|
committer | deva <deva> | 2008-09-19 15:02:48 +0000 |
commit | 463404ce952bffb323cd68335eb5e326d7837c88 (patch) | |
tree | 4ff0ae1740e6e0c5d9674ceaf9e2780f4b5fe2c1 /server/src | |
parent | 3541224f0fb3d5b7b531eef45318d7e41cb51915 (diff) |
Temporary frame caption solution
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/server.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/src/server.cc b/server/src/server.cc index 5d72098..83d9157 100644 --- a/server/src/server.cc +++ b/server/src/server.cc @@ -135,9 +135,9 @@ static std::string handleTransaction(Transaction &transaction) answer += " <macro name=\"" + macro.attributes["name"] + "\" completed="; if(db.checkMacro(transaction.cpr, macro.attributes["name"])) answer += "\"true\""; else answer += "\"false\""; - answer += ">\n"; if(macro.attributes["name"] == request.macro) { + answer += ">\n"; foundmacro = true; @@ -192,6 +192,14 @@ static std::string handleTransaction(Transaction &transaction) } answer += widgetgenerator(transaction.cpr, *m, lqm, db); + } else { + // only find macro title + MacroParser mp(macro.attributes["name"]); + mp.parse(); + Macro *m = mp.getMacro(); + answer += "caption=\"" + m->window.attributes["caption"] + "\""; + answer += ">\n"; + } answer += " </macro>\n"; mi2++; |