[Spice-devel] [PATCH spice-xpi 2/6] reverse log order

Peter Hatina phatina at redhat.com
Mon Oct 21 08:40:20 CEST 2013


Log messages are now added to the head of the log row.

---
 generator/generator.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generator/generator.cpp b/generator/generator.cpp
index 48b34d2..f683338 100644
--- a/generator/generator.cpp
+++ b/generator/generator.cpp
@@ -111,7 +111,7 @@ void Generator::generateHeader()
               << "    msgCell.innerHTML = message;\n\n"
               << "    newRow.appendChild(tsCell);\n"
               << "    newRow.appendChild(msgCell);\n"
-              << "    log.appendChild(newRow);\n}\n\n"
+              << "    log.insertBefore(newRow, log.firstChild);\n}\n\n"
               << "function setLanguageStrings()\n{\n"
               << "    section = document.getElementById(\"SetLanguageStringssectionToggled\").checked ?\n"
               << "        document.getElementById(\"SetLanguageStringssection\").value : \"\";\n"
-- 
Peter Hatina
ENG Server Experience, System Management
Red Hat Czech, Brno



More information about the Spice-devel mailing list