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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]