Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gnome-extra/gnome-shell-extension-applications-overview-tooltip/files/, ...
Date: Sat, 20 Apr 2019 22:45:19
Message-Id: 1555783187.13f10c832594e77ced961cbe2001a6c6dbb285bd.pacho@gentoo
1 commit: 13f10c832594e77ced961cbe2001a6c6dbb285bd
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 20 17:56:37 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 20 17:59:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13f10c83
7
8 gnome-extra/gnome-shell-extension-applications-overview-tooltip: Add extension to show full app name and tooltip
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12
13 .../Manifest | 1 +
14 ...pplications-overview-tooltip-4-js-warning.patch | 24 +++++++++++
15 ...ications-overview-tooltip-4-old-animation.patch | 45 +++++++++++++++++++++
16 ...xtension-applications-overview-tooltip-4.ebuild | 46 ++++++++++++++++++++++
17 .../metadata.xml | 7 ++++
18 5 files changed, 123 insertions(+)
19
20 diff --git a/gnome-extra/gnome-shell-extension-applications-overview-tooltip/Manifest b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/Manifest
21 new file mode 100644
22 index 00000000000..f9ca3a2e56f
23 --- /dev/null
24 +++ b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/Manifest
25 @@ -0,0 +1 @@
26 +DIST gnome-shell-extension-applications-overview-tooltip-4.tar.gz 79384 BLAKE2B 9e428b66351cb26615050a1c2e8e7ee1e325079b46ae7fc40eb836aef652ca33e04af9b39c07098364b6844c057867e9e5ddee291748afe63084caa108289037 SHA512 befb6f11f7836010077aba10d8664ba462c7153b498e25b5ad0fa12e065dc0b84302b7cc97d1f0685108ea92c20b61491c85a25a4511ad7237b1c0122a587868
27
28 diff --git a/gnome-extra/gnome-shell-extension-applications-overview-tooltip/files/gnome-shell-extension-applications-overview-tooltip-4-js-warning.patch b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/files/gnome-shell-extension-applications-overview-tooltip-4-js-warning.patch
29 new file mode 100644
30 index 00000000000..0ed36b288f0
31 --- /dev/null
32 +++ b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/files/gnome-shell-extension-applications-overview-tooltip-4-js-warning.patch
33 @@ -0,0 +1,24 @@
34 +From 27af671cca3fc6b9dd5c8687c1b3d0d530ccc516 Mon Sep 17 00:00:00 2001
35 +From: =?UTF-8?q?Rapha=C3=ABl=20Rochet?= <raphael@×××.fr>
36 +Date: Sun, 23 Sep 2018 16:39:36 +0200
37 +Subject: [PATCH] Fix JS warning
38 +
39 +---
40 + extension.js | 4 ++--
41 + 1 file changed, 2 insertions(+), 2 deletions(-)
42 +
43 +diff --git a/extension.js b/extension.js
44 +index 346a89a..1eda926 100644
45 +--- a/extension.js
46 ++++ b/extension.js
47 +@@ -250,8 +250,8 @@ function _showTooltip(actor) {
48 +
49 + if (!detailtext) { _ttdetail.hide() } else { _ttdetail.show() };
50 +
51 +- [stageX, stageY] = actor.get_transformed_position();
52 +- [iconWidth, iconHeight] = actor.get_transformed_size();
53 ++ let [stageX, stageY] = actor.get_transformed_position();
54 ++ let [iconWidth, iconHeight] = actor.get_transformed_size();
55 + let y = stageY + iconHeight + 5;
56 + let x = stageX - Math.round((_ttbox.get_width() - iconWidth)/2);
57 +
58
59 diff --git a/gnome-extra/gnome-shell-extension-applications-overview-tooltip/files/gnome-shell-extension-applications-overview-tooltip-4-old-animation.patch b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/files/gnome-shell-extension-applications-overview-tooltip-4-old-animation.patch
60 new file mode 100644
61 index 00000000000..333d1c7c22b
62 --- /dev/null
63 +++ b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/files/gnome-shell-extension-applications-overview-tooltip-4-old-animation.patch
64 @@ -0,0 +1,45 @@
65 +From ff442818fb5c4fd9521c532200ff825061fa35e4 Mon Sep 17 00:00:00 2001
66 +From: =?UTF-8?q?Rapha=C3=ABl=20Rochet?= <raphael@×××.fr>
67 +Date: Mon, 11 Feb 2019 21:26:24 +0100
68 +Subject: [PATCH] Fix #6 by removing old swipe animation
69 +
70 +---
71 + extension.js | 16 ++--------------
72 + 1 file changed, 2 insertions(+), 14 deletions(-)
73 +
74 +diff --git a/extension.js b/extension.js
75 +index 1eda926..deffc58 100644
76 +--- a/extension.js
77 ++++ b/extension.js
78 +@@ -175,16 +175,10 @@ function _onLeave() {
79 + _labelTimeoutId = 0;
80 + }
81 +
82 +- // but give a chance to skip hover delay if the cursor hovers another icon
83 + if (_labelShowing) {
84 +- _resetHoverTimeoutId = Mainloop.timeout_add(HIDEDELAY, function() {
85 +- _hideTooltip();
86 +- _labelShowing = false;
87 +- _resetHoverTimeoutId = 0;
88 +- return false;
89 +- } );
90 ++ _hideTooltip();
91 ++ _labelShowing = false;
92 + }
93 +-
94 + }
95 +
96 +
97 +@@ -277,12 +271,6 @@ function _showTooltip(actor) {
98 +
99 + }
100 +
101 +- // do not hide tooltip while cursor is on icon
102 +- if (_resetHoverTimeoutId > 0) {
103 +- Mainloop.source_remove(_resetHoverTimeoutId);
104 +- _resetHoverTimeoutId = 0;
105 +- }
106 +-
107 + } else {
108 +
109 + // No tooltip to show : act like we're leaving an icon
110
111 diff --git a/gnome-extra/gnome-shell-extension-applications-overview-tooltip/gnome-shell-extension-applications-overview-tooltip-4.ebuild b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/gnome-shell-extension-applications-overview-tooltip-4.ebuild
112 new file mode 100644
113 index 00000000000..a86a660de2e
114 --- /dev/null
115 +++ b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/gnome-shell-extension-applications-overview-tooltip-4.ebuild
116 @@ -0,0 +1,46 @@
117 +# Copyright 1999-2019 Gentoo Authors
118 +# Distributed under the terms of the GNU General Public License v2
119 +
120 +EAPI=6
121 +inherit vcs-snapshot
122 +
123 +# Workaround until https://bugzilla.gnome.org/show_bug.cgi?id=663725 is fixed
124 +DESCRIPTION="Show tooltip with full name and description"
125 +HOMEPAGE="https://github.com/RaphaelRochet/applications-overview-tooltip"
126 +SRC_URI="https://github.com/RaphaelRochet/applications-overview-tooltip/archive/v${PV}.tar.gz -> ${P}.tar.gz"
127 +
128 +# https://github.com/RaphaelRochet/applications-overview-tooltip/issues/7
129 +LICENSE="public-domain"
130 +SLOT="0"
131 +KEYWORDS="~amd64 ~x86"
132 +IUSE=""
133 +
134 +# glib for glib-compile-schemas at build time, needed at runtime anyways
135 +COMMON_DEPEND="
136 + dev-libs/glib:2
137 +"
138 +RDEPEND="${COMMON_DEPEND}
139 + app-eselect/eselect-gnome-shell-extensions
140 + >=gnome-base/gnome-shell-3.20
141 +"
142 +DEPEND="${COMMON_DEPEND}"
143 +
144 +PATCHES=(
145 + # From 'master'
146 + "${FILESDIR}"/${P}-old-animation.patch
147 + "${FILESDIR}"/${P}-js-warning.patch
148 +)
149 +
150 +src_install() {
151 + einstalldocs
152 + rm -f README.md || die
153 + insinto /usr/share/gnome-shell/extensions/applications-overview-tooltip@RaphaelRochet
154 + doins -r *
155 + glib-compile-schemas "${ED}"/usr/share/gnome-shell/extensions/applications-overview-tooltip@RaphaelRochet/schemas || die
156 +}
157 +
158 +pkg_postinst() {
159 + ebegin "Updating list of installed extensions"
160 + eselect gnome-shell-extensions update
161 + eend $?
162 +}
163
164 diff --git a/gnome-extra/gnome-shell-extension-applications-overview-tooltip/metadata.xml b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/metadata.xml
165 new file mode 100644
166 index 00000000000..020b40648ee
167 --- /dev/null
168 +++ b/gnome-extra/gnome-shell-extension-applications-overview-tooltip/metadata.xml
169 @@ -0,0 +1,7 @@
170 +<?xml version="1.0" encoding="UTF-8"?>
171 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
172 +<pkgmetadata>
173 + <maintainer type="person">
174 + <email>pacho@g.o</email>
175 + </maintainer>
176 +</pkgmetadata>