Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@××××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-apps/coretoppings/files/, gui-apps/coretoppings/
Date: Sat, 26 Dec 2020 02:04:27
Message-Id: 1608948261.4fb135ec7d876105d1f1667ea55508563ce45282.xgqt@gentoo
1 commit: 4fb135ec7d876105d1f1667ea55508563ce45282
2 Author: Maciej Barć <xgqt <AT> protonmail <DOT> com>
3 AuthorDate: Sat Dec 26 02:04:19 2020 +0000
4 Commit: Maciej Barć <xgqt <AT> protonmail <DOT> com>
5 CommitDate: Sat Dec 26 02:04:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4fb135ec
7
8 gui-apps/coretoppings: backport statusnotifierbutton patch
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com>
12
13 ...oretoppings-4.1.0.ebuild => coretoppings-4.1.0-r1.ebuild} | 4 ++++
14 .../files/coretoppings-4.1.0-statusnotifierbutton.patch | 12 ++++++++++++
15 2 files changed, 16 insertions(+)
16
17 diff --git a/gui-apps/coretoppings/coretoppings-4.1.0.ebuild b/gui-apps/coretoppings/coretoppings-4.1.0-r1.ebuild
18 similarity index 94%
19 rename from gui-apps/coretoppings/coretoppings-4.1.0.ebuild
20 rename to gui-apps/coretoppings/coretoppings-4.1.0-r1.ebuild
21 index 0fa865a4..2b7a7669 100644
22 --- a/gui-apps/coretoppings/coretoppings-4.1.0.ebuild
23 +++ b/gui-apps/coretoppings/coretoppings-4.1.0-r1.ebuild
24 @@ -34,6 +34,10 @@ RDEPEND="
25 pulseaudio? ( media-sound/pulseaudio )
26 "
27
28 +PATCHES=(
29 + "${FILESDIR}/${P}-statusnotifierbutton.patch"
30 +)
31 +
32 src_prepare() {
33 default
34
35
36 diff --git a/gui-apps/coretoppings/files/coretoppings-4.1.0-statusnotifierbutton.patch b/gui-apps/coretoppings/files/coretoppings-4.1.0-statusnotifierbutton.patch
37 new file mode 100644
38 index 00000000..cfd0f5cd
39 --- /dev/null
40 +++ b/gui-apps/coretoppings/files/coretoppings-4.1.0-statusnotifierbutton.patch
41 @@ -0,0 +1,12 @@
42 +index d07eb6b..c339657 100644
43 +--- a/sni/statusnotifierbutton.cpp
44 ++++ b/sni/statusnotifierbutton.cpp
45 +@@ -267,7 +267,7 @@ void StatusNotifierButton::mouseReleaseEvent(QMouseEvent *event)
46 + {
47 + if (event->button() == Qt::LeftButton)
48 + interface->Activate(QCursor::pos().x(), QCursor::pos().y());
49 +- else if (event->button() == Qt::MidButton)
50 ++ else if (event->button() == Qt::MiddleButton)
51 + interface->SecondaryActivate(QCursor::pos().x(), QCursor::pos().y());
52 + else if (Qt::RightButton == event->button())
53 + {