commit: ee9680c07141bc535f300bf5320cba62cbf806c6 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Dec 16 19:59:44 2018 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Dec 16 21:24:13 2018 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=ee9680c0
kde-plasma/xdg-desktop-portal-kde: New package Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> ...dg-desktop-portal-kde-5.14.4-current_name.patch | 42 ++++++++++++++++++++++ kde-plasma/xdg-desktop-portal-kde/metadata.xml | 8 +++++ .../xdg-desktop-portal-kde-5.14.4.ebuild | 37 +++++++++++++++++++ .../xdg-desktop-portal-kde-5.14.49.9999.ebuild | 37 +++++++++++++++++++ .../xdg-desktop-portal-kde-9999.ebuild | 35 ++++++++++++++++++ 5 files changed, 159 insertions(+) diff --git a/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.14.4-current_name.patch b/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.14.4-current_name.patch new file mode 100644 index 0000000000..6525711fc0 --- /dev/null +++ b/kde-plasma/xdg-desktop-portal-kde/files/xdg-desktop-portal-kde-5.14.4-current_name.patch @@ -0,0 +1,42 @@ +From ccea985840cf5b05b0359067854abc3da080e737 Mon Sep 17 00:00:00 2001 +From: Jan Grulich <jgrul...@redhat.com> +Date: Thu, 13 Dec 2018 07:47:19 +0100 +Subject: FileChooser: make use of current_name property in Save dialog + +It's not used in Qt portal implementation, but gtk has API for that and sets it in Save dialog +and we should try to call selectFile() with it to get pre-selected file for the dialog + +BUG: 402077 +--- + src/filechooser.cpp | 9 ++++----- + 1 file changed, 4 insertions(+), 5 deletions(-) + +diff --git a/src/filechooser.cpp b/src/filechooser.cpp +index 37e7744..19f4d42 100644 +--- a/src/filechooser.cpp ++++ b/src/filechooser.cpp +@@ -249,11 +249,6 @@ uint FileChooserPortal::SaveFile(const QDBusObjectPath &handle, + fileDialog->setModal(modalDialog); + fileDialog->setAcceptMode(QFileDialog::AcceptSave); + +- // TODO: Looks Qt doesn't have API for this +- // if (!currentName.isEmpty()) { +- // fileDialog->selectFile(currentName); +- // } +- + if (!currentFolder.isEmpty()) { + fileDialog->setDirectoryUrl(QUrl(currentFolder)); + } +@@ -262,6 +257,10 @@ uint FileChooserPortal::SaveFile(const QDBusObjectPath &handle, + fileDialog->selectFile(currentFile); + } + ++ if (!currentName.isEmpty()) { ++ fileDialog->selectFile(currentName); ++ } ++ + if (!acceptLabel.isEmpty()) { + fileDialog->setLabelText(QFileDialog::Accept, acceptLabel); + } +-- +cgit v1.1 diff --git a/kde-plasma/xdg-desktop-portal-kde/metadata.xml b/kde-plasma/xdg-desktop-portal-kde/metadata.xml new file mode 100644 index 0000000000..2fdbf33d96 --- /dev/null +++ b/kde-plasma/xdg-desktop-portal-kde/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>k...@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> +</pkgmetadata> diff --git a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.4.ebuild b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.4.ebuild new file mode 100644 index 0000000000..96f981adf4 --- /dev/null +++ b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.4.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +VIRTUALX_REQUIRED="test" +inherit kde5 + +DESCRIPTION="Qt Platform Theme integration plugins for the Plasma workspaces" +LICENSE="LGPL-2+" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# TODO: Needed for screencast portal +# dev-libs/glib:2 +# media-libs/libepoxy +# media-libs/mesa[gbm] +# not packaged: PipeWire +COMMON_DEPEND=" + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep knotifications) + $(add_frameworks_dep kwidgetsaddons) + $(add_qt_dep qtdbus) + $(add_qt_dep qtgui) + $(add_qt_dep qtprintsupport) + $(add_qt_dep qtwidgets) +" +DEPEND="${COMMON_DEPEND} + $(add_frameworks_dep kwayland) + $(add_qt_dep qtconcurrent) +" +RDEPEND="${COMMON_DEPEND} + x11-misc/xdg-desktop-portal +" + +PATCHES=( "${FILESDIR}/${P}-current_name.patch" ) diff --git a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.49.9999.ebuild b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.49.9999.ebuild new file mode 100644 index 0000000000..0d475b3379 --- /dev/null +++ b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.14.49.9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +VIRTUALX_REQUIRED="test" +inherit kde5 + +DESCRIPTION="Qt Platform Theme integration plugins for the Plasma workspaces" +LICENSE="LGPL-2+" +KEYWORDS="" +IUSE="" + +# TODO: Needed for screencast portal +# dev-libs/glib:2 +# media-libs/libepoxy +# media-libs/mesa[gbm] +# not packaged: PipeWire +COMMON_DEPEND=" + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep knotifications) + $(add_frameworks_dep kwidgetsaddons) + $(add_qt_dep qtdbus) + $(add_qt_dep qtgui) + $(add_qt_dep qtprintsupport) + $(add_qt_dep qtwidgets) +" +DEPEND="${COMMON_DEPEND} + $(add_frameworks_dep kwayland) + $(add_qt_dep qtconcurrent) +" +RDEPEND="${COMMON_DEPEND} + x11-misc/xdg-desktop-portal +" + +PATCHES=( "${FILESDIR}/${P}-current_name.patch" ) diff --git a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-9999.ebuild b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-9999.ebuild new file mode 100644 index 0000000000..a3c1db4fed --- /dev/null +++ b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-9999.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +VIRTUALX_REQUIRED="test" +inherit kde5 + +DESCRIPTION="Backend implementation for xdg-desktop-portal that is using Qt/KDE Frameworks" +LICENSE="LGPL-2+" +KEYWORDS="" +IUSE="" + +# TODO: Needed for screencast portal +# dev-libs/glib:2 +# media-libs/libepoxy +# media-libs/mesa[gbm] +# not packaged: PipeWire +COMMON_DEPEND=" + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep ki18n) + $(add_frameworks_dep knotifications) + $(add_frameworks_dep kwidgetsaddons) + $(add_qt_dep qtdbus) + $(add_qt_dep qtgui) + $(add_qt_dep qtprintsupport) + $(add_qt_dep qtwidgets) +" +DEPEND="${COMMON_DEPEND} + $(add_frameworks_dep kwayland) + $(add_qt_dep qtconcurrent) +" +RDEPEND="${COMMON_DEPEND} + x11-misc/xdg-desktop-portal +"