unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sughosha via Guix-patches via <guix-patches@gnu.org>
To: 66856@debbugs.gnu.org
Cc: Sughosha <sughosha@disroot.org>
Subject: [bug#66856] [PATCH v2 5/7] gnu: Add plasma-shell-applet-window-buttons.
Date: Fri,  3 Nov 2023 01:14:36 +0100	[thread overview]
Message-ID: <05223800f126abed88fc9da72eff677b7b1e2e56.1698969760.git.sughosha@disroot.org> (raw)
In-Reply-To: <cover.1698969760.git.sughosha@disroot.org>

* gnu/packages/kde-xyz.scm (plasma-shell-applet-window-buttons): New variable.
* gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch: New file.
* gnu/local.mk: Register it.

Change-Id: I6e9d9b6acda80d038060b04502aaa40c1cb548a3
---
 gnu/local.mk                                  |  1 +
 gnu/packages/kde-xyz.scm                      | 39 ++++++++++++++
 ...sion-window-buttons-applet-fix-build.patch | 52 +++++++++++++++++++
 3 files changed, 92 insertions(+)
 create mode 100644 gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 03e8c28d45..41e3b71346 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1747,6 +1747,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/petri-foo-0.1.87-fix-recent-file-not-exist.patch			\
   %D%/packages/patches/php-fix-streams-copy-length.patch	\
   %D%/packages/patches/plasma-framework-fix-KF5PlasmaMacros.cmake.patch \
+  %D%/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch	\
   %D%/packages/patches/pocketfft-cpp-prefer-preprocessor-if.patch			\
   %D%/packages/patches/pokerth-boost.patch			\
   %D%/packages/patches/ppsspp-disable-upgrade-and-gold.patch		\
diff --git a/gnu/packages/kde-xyz.scm b/gnu/packages/kde-xyz.scm
index 53a60ce65f..2df9cada5e 100644
--- a/gnu/packages/kde-xyz.scm
+++ b/gnu/packages/kde-xyz.scm
@@ -23,6 +23,7 @@ (define-module (gnu packages kde-xyz)
   #:use-module (guix git-download)
   #:use-module (guix packages)
   #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (gnu packages)
   #:use-module (gnu packages gnome-xyz)
   #:use-module (gnu packages kde-frameworks)
   #:use-module (gnu packages kde-plasma)
@@ -158,3 +159,41 @@ (define-public plasma-shell-applet-window-appmenu
        "This plasmoid shows the current window appmenu in Plasma panels or
 Latte Dock.")
       (license license:gpl2+))))
+
+(define-public plasma-shell-applet-window-buttons
+  (package
+    (name "plasma-shell-applet-window-buttons")
+    (version "0.11.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+          (url "https://github.com/psifidotos/applet-window-buttons")
+          (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1wbiw5gz6fp8rf2f8sd3ibgkx9abvi0d3s0xz6m3p6n4cvdky323"))
+       (patches
+        (search-patches
+         "plasma-shell-extension-window-buttons-applet-fix-build.patch"))))
+    (build-system qt-build-system)
+    (native-inputs
+     (list extra-cmake-modules))
+    (inputs
+     (list kcmutils
+           kconfigwidgets
+           kcoreaddons
+           kdeclarative
+           ki18n
+           kservice
+           kwindowsystem
+           plasma-framework
+           qtdeclarative-5))
+    (propagated-inputs
+     (list kdecoration))
+    (home-page "https://github.com/psifidotos/applet-window-buttons")
+    (synopsis "Window buttons in Plasma panels")
+    (description
+     "This plasmoid shows window buttons in Plasma panels or Latte Dock.")
+    (license license:gpl2+)))
diff --git a/gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch b/gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch
new file mode 100644
index 0000000000..afbb62eb30
--- /dev/null
+++ b/gnu/packages/patches/plasma-shell-extension-window-buttons-applet-fix-build.patch
@@ -0,0 +1,52 @@
+From 924994e10402921bf22fefc099bca2914989081c Mon Sep 17 00:00:00 2001
+From: Dmitry Chermnykh <76gh6rvso@relay.firefox.com>
+Date: Mon, 23 Jan 2023 21:21:47 +0500
+Subject: [PATCH] Support building on plasma 5.26.90+
+
+---
+ CMakeLists.txt                        | 2 +-
+ libappletdecoration/previewclient.cpp | 5 +++++
+ libappletdecoration/previewclient.h   | 1 +
+ 3 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5ecec88..43adaef 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -8,7 +8,7 @@ set(EMAIL "mvourlakos@gmail.com")
+ 
+ set(QT_MIN_VERSION "5.15.0")
+ set(KF5_MIN_VERSION "5.81.0")
+-set(KDECORATION2_MIN_VERSION "5.24.0")
++set(KDECORATION2_MIN_VERSION "5.26.90")
+ 
+ set(KF5_LOCALE_PREFIX "")
+ 
+diff --git a/libappletdecoration/previewclient.cpp b/libappletdecoration/previewclient.cpp
+index 2cf184b..3ffe358 100644
+--- a/libappletdecoration/previewclient.cpp
++++ b/libappletdecoration/previewclient.cpp
+@@ -263,6 +263,11 @@ WId PreviewClient::windowId() const
+     return 0;
+ }
+ 
++QString PreviewClient::windowClass() const
++{
++    return QString("kwin_preview");
++}
++
+ QPalette PreviewClient::palette() const
+ {
+     return m_palette->palette();
+diff --git a/libappletdecoration/previewclient.h b/libappletdecoration/previewclient.h
+index c479acc..e5fbe7a 100644
+--- a/libappletdecoration/previewclient.h
++++ b/libappletdecoration/previewclient.h
+@@ -74,6 +74,7 @@ class PreviewClient : public QObject, public KDecoration2::ApplicationMenuEnable
+     QString caption() const override;
+     WId decorationId() const override;
+     WId windowId() const override;
++    QString windowClass() const override;
+     int desktop() const override;
+     QIcon icon() const override;
+     bool isActive() const override;
-- 
2.41.0





  parent reply	other threads:[~2023-11-03  0:20 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-31 20:18 [bug#66856] [PATCH 0/7] Add some themes and extensions for KDE Plasma Sughosha via Guix-patches via
2023-10-31 20:18 ` [bug#66855] [PATCH 1/7] gnu: Add flat-remix-kde-theme Sughosha via Guix-patches via
2023-10-31 20:18 ` [bug#66860] [PATCH 2/7] gnu: Add plasma-shell-applet-advanced-radio-player Sughosha via Guix-patches via
2023-10-31 20:18 ` [bug#66854] [PATCH 3/7] gnu: Add plasma-shell-applet-better-inline-clock Sughosha via Guix-patches via
2023-10-31 20:18 ` [bug#66859] [PATCH 4/7] gnu: Add plasma-shell-applet-window-appmenu Sughosha via Guix-patches via
2023-10-31 20:18 ` [bug#66861] [PATCH 5/7] gnu: Add plasma-shell-applet-window-buttons Sughosha via Guix-patches via
2023-10-31 20:19 ` [bug#66857] [PATCH 6/7] gnu: Add plasma-shell-applet-window-title Sughosha via Guix-patches via
2023-10-31 20:19 ` [bug#66858] [PATCH 7/7] gnu: Add plasma-shell-wallpaper-active-blur Sughosha via Guix-patches via
2023-11-03  0:14 ` [bug#66856] [PATCH v2 0/7] Add some themes and extensions for KDE Plasma Sughosha via Guix-patches via
2023-11-03  0:14   ` [bug#66856] [PATCH v2 1/7] gnu: Add flat-remix-kde-theme Sughosha via Guix-patches via
2023-11-03  0:14   ` [bug#66856] [PATCH v2 2/7] gnu: Add plasma-shell-applet-advanced-radio-player Sughosha via Guix-patches via
2023-11-03  0:14   ` [bug#66856] [PATCH v2 3/7] gnu: Add plasma-shell-applet-better-inline-clock Sughosha via Guix-patches via
2023-11-03  0:14   ` [bug#66856] [PATCH v2 4/7] gnu: Add plasma-shell-applet-window-appmenu Sughosha via Guix-patches via
2023-11-03  0:14   ` Sughosha via Guix-patches via [this message]
2023-11-03  0:14   ` [bug#66856] [PATCH v2 6/7] gnu: Add plasma-shell-applet-window-title Sughosha via Guix-patches via
2023-11-03  0:14   ` [bug#66856] [PATCH v2 7/7] gnu: Add plasma-shell-wallpaper-active-blur Sughosha via Guix-patches via
2023-11-04  0:36 ` [bug#66856] [PATCH v3 0/7] Add some themes and extensions for KDE Plasma Sughosha via Guix-patches via
2023-11-04  0:36   ` [bug#66856] [PATCH v3 1/7] gnu: Add flat-remix-kde-theme Sughosha via Guix-patches via
2023-11-04  0:36   ` [bug#66856] [PATCH v3 2/7] gnu: Add plasma-applet-advanced-radio-player Sughosha via Guix-patches via
2023-11-04  0:36   ` [bug#66856] [PATCH v3 3/7] gnu: Add plasma-applet-better-inline-clock Sughosha via Guix-patches via
2023-11-04  0:36   ` [bug#66856] [PATCH v3 4/7] gnu: Add plasma-applet-window-appmenu Sughosha via Guix-patches via
2023-11-04  0:36   ` [bug#66856] [PATCH v3 5/7] gnu: Add plasma-applet-window-buttons Sughosha via Guix-patches via
2023-11-04  0:37   ` [bug#66856] [PATCH v3 6/7] gnu: Add plasma-applet-window-title Sughosha via Guix-patches via
2023-11-04  0:37   ` [bug#66856] [PATCH v3 7/7] gnu: Add plasma-wallpaper-active-blur Sughosha via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=05223800f126abed88fc9da72eff677b7b1e2e56.1698969760.git.sughosha@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=66856@debbugs.gnu.org \
    --cc=sughosha@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).