diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-08-03 00:07:26 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-08-03 01:17:15 +0200 |
commit | 69d39a82485753c7cfc90ce55438148076a3bfa3 (patch) | |
tree | 22664916e91e3074765ba6e19384715117fcb2c2 /kde-plasma/plasma-workspace | |
parent | kde-plasma/plasma-workspace: Gentoo FHS script support for Wayland session (diff) | |
download | gentoo-69d39a82485753c7cfc90ce55438148076a3bfa3.tar.gz gentoo-69d39a82485753c7cfc90ce55438148076a3bfa3.tar.bz2 gentoo-69d39a82485753c7cfc90ce55438148076a3bfa3.zip |
kde-plasma/plasma-workspace: Backport upstream fixes
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'kde-plasma/plasma-workspace')
3 files changed, 105 insertions, 0 deletions
diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-ghns-https.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-ghns-https.patch new file mode 100644 index 000000000000..2a805e32f0f7 --- /dev/null +++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-ghns-https.patch @@ -0,0 +1,34 @@ +commit ae943198bf74d563adcb1f3d36ee4ba1b7b274a9 +Author: Aleix Pol <aleixpol@kde.org> +Date: Fri Jul 28 13:21:38 2017 +0200 + + Prefer using https for kns providers + + CCBUG: 382820 + +diff --git a/components/shellprivate/widgetexplorer/plasmoids.knsrc b/components/shellprivate/widgetexplorer/plasmoids.knsrc +index c683a257..03c7de0e 100644 +--- a/components/shellprivate/widgetexplorer/plasmoids.knsrc ++++ b/components/shellprivate/widgetexplorer/plasmoids.knsrc +@@ -36,7 +36,7 @@ Name[x-test]=xxPlasma Widgetsxx + Name[zh_CN]=Plasma 部件 + Name[zh_TW]=Plasma 元件 + +-ProvidersUrl=http://download.kde.org/ocs/providers.xml ++ProvidersUrl=https://download.kde.org/ocs/providers.xml + Categories=Plasma 5 Plasmoid + StandardResource=tmp + InstallationCommand=kpackagetool5 --install %f --type Plasma/Applet +diff --git a/wallpapers/image/wallpaper.knsrc b/wallpapers/image/wallpaper.knsrc +index 4a0cf2d6..2decc7e7 100644 +--- a/wallpapers/image/wallpaper.knsrc ++++ b/wallpapers/image/wallpaper.knsrc +@@ -36,7 +36,7 @@ Name[x-test]=xxWallpapersxx + Name[zh_CN]=壁纸 + Name[zh_TW]=桌布 + +-ProvidersUrl=http://download.kde.org/ocs/providers.xml ++ProvidersUrl=https://download.kde.org/ocs/providers.xml + Categories=KDE Wallpaper 800x600,KDE Wallpaper 1024x768,KDE Wallpaper 1280x1024,KDE Wallpaper 1440x900,KDE Wallpaper 1600x1200,KDE Wallpaper (other) + StandardResource=wallpaper + Uncompress=archive diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-notifications.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-notifications.patch new file mode 100644 index 000000000000..e964eeb8beb8 --- /dev/null +++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.10.4-notifications.patch @@ -0,0 +1,69 @@ +commit 7e2a29b0b18abe31df68c2f176124acfbc15c438 +Author: Kai Uwe Broulik <kde@privat.broulik.de> +Date: Tue Aug 1 12:53:38 2017 +0200 + + [Notifications] Improve mouse handling + + * Make links clickable again + * Don't pass visualParent to context menu as we already give it a position, fixes it being positioned incorrectly + * Open context menu on press already like is done everywhere else + * Give "Copy" the edit-copy icon + * Deselect text after copying again, otherwise it stays selected but the user cannot unselect it. + + BUG: 382263 + FIXED-IN: 5.10.5 + + Differential Revision: https://phabricator.kde.org/D7029 + +diff --git a/applets/notifications/package/contents/ui/NotificationItem.qml b/applets/notifications/package/contents/ui/NotificationItem.qml +index dabf1b90..c260d588 100644 +--- a/applets/notifications/package/contents/ui/NotificationItem.qml ++++ b/applets/notifications/package/contents/ui/NotificationItem.qml +@@ -282,8 +282,6 @@ MouseArea { + wrapMode: Text.Wrap + textFormat: TextEdit.RichText + +- onLinkActivated: Qt.openUrlExternally(link) +- + // ensure selecting text scrolls the view as needed... + onCursorRectangleChanged: { + var flick = bodyTextScrollArea.flickableItem +@@ -297,23 +295,33 @@ MouseArea { + anchors.fill: parent + acceptedButtons: Qt.RightButton | Qt.LeftButton + +- onClicked: { +- if (mouse.button == Qt.RightButton) ++ onPressed: { ++ if (mouse.button === Qt.RightButton) { + contextMenu.open(mouse.x, mouse.y) +- else { +- notificationItem.clicked(mouse) ++ } ++ } ++ ++ onClicked: { ++ if (mouse.button === Qt.LeftButton) { ++ var link = bodyText.linkAt(mouse.x, mouse.y) ++ if (link) { ++ Qt.openUrlExternally(link) ++ } else { ++ notificationItem.clicked(mouse) ++ } + } + } + + PlasmaComponents.ContextMenu { + id: contextMenu +- visualParent: parent + + PlasmaComponents.MenuItem { + text: i18n("Copy") ++ icon: "edit-copy" + onClicked: { + bodyText.selectAll() + bodyText.copy() ++ bodyText.deselect() + } + } + } diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.10.4-r2.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.10.4-r2.ebuild index 9f18cb3c6c80..939cbb963642 100644 --- a/kde-plasma/plasma-workspace/plasma-workspace-5.10.4-r2.ebuild +++ b/kde-plasma/plasma-workspace/plasma-workspace-5.10.4-r2.ebuild @@ -122,6 +122,8 @@ DEPEND="${COMMON_DEPEND} PATCHES=( "${FILESDIR}/${PN}-5.4-startkde-script.patch" "${FILESDIR}/${PN}-5.10-startplasmacompositor-script.patch" + "${FILESDIR}/${P}-ghns-https.patch" + "${FILESDIR}/${P}-notifications.patch" "${FILESDIR}/${P}-unused-dep.patch" ) |