File: debianize_akregator_default.diff

package info (click to toggle)
akregator 4%3A25.08.3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,964 kB
  • sloc: cpp: 28,153; xml: 264; makefile: 8; sh: 4
file content (32 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Author: Ana Beatriz Guerrero Lopez <ana@debian.org>
Author: Pino Toscano <pino@debian.org>
Description: add a few Debian feeds to akregator
 Include Planet Debian and Debian News as default in akregator
Forwarded: not-needed
Origin: vendor
Last-Update: 2017-12-26

--- a/src/akregator_part.cpp
+++ b/src/akregator_part.cpp
@@ -138,6 +138,21 @@ static QDomDocument createDefaultFeedLis
     spanishKde.setAttribute(QStringLiteral("xmlUrl"), QStringLiteral("https://planet.kde-espana.org/atom.xml"));
     spanishFolder.appendChild(spanishKde);
 
+    // Debian feed(s)
+    QDomElement debianFolder = doc.createElement(QStringLiteral("outline"));
+    debianFolder.setAttribute(QStringLiteral("text"), QStringLiteral("Debian"));
+    body.appendChild(debianFolder);
+
+    QDomElement pland = doc.createElement(QStringLiteral("outline"));
+    pland.setAttribute(QStringLiteral("text"), i18n("Planet Debian"));
+    pland.setAttribute(QStringLiteral("xmlUrl"), QStringLiteral("http://planet.debian.org/rss20.xml"));
+    debianFolder.appendChild(pland);
+
+    QDomElement dtimes = doc.createElement(QStringLiteral("outline"));
+    dtimes.setAttribute(QStringLiteral("text"), i18n("Debian News"));
+    dtimes.setAttribute(QStringLiteral("xmlUrl"), QStringLiteral("http://www.debian.org/News/news"));
+    debianFolder.appendChild(dtimes);
+
     return doc;
 }
 }