[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:22:43 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=027bb0e
The following commit has been merged in the master branch:
commit 027bb0ea5ad4c0ffc453fb04ad5e7e82d2f5c63b
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date: Fri Aug 31 12:33:41 2012 +0200
Inject the scripts and the css before the end of the head tag
---
lib/adium-theme-view.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/adium-theme-view.cpp b/lib/adium-theme-view.cpp
index df2b6d7..ca975f0 100644
--- a/lib/adium-theme-view.cpp
+++ b/lib/adium-theme-view.cpp
@@ -25,6 +25,7 @@
#include "adium-theme-status-info.h"
#include "chat-window-style-manager.h"
#include "chat-window-style.h"
+#include "message-processor.h"
#include <QtCore/QFile>
#include <QtCore/QTextCodec>
@@ -211,6 +212,12 @@ void AdiumThemeView::initialise(const AdiumThemeHeaderInfo &chatInfo)
index = templateHtml.indexOf(QLatin1String("%@"), index);
templateHtml.replace(index, 2, footerHtml);
+ // Inject the scripts and the css just before the end of the head tag
+ index = templateHtml.indexOf(QLatin1String("</head>"));
+ templateHtml.insert(index, MessageProcessor::instance()->header());
+
+ kWarning() << templateHtml;
+
setHtml(templateHtml);
//hidden HTML debugging mode. Should have no visible way to turn it on.
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list