[gnome-shell] extensions-app: Add description tooltip to rows
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] extensions-app: Add description tooltip to rows
- Date: Thu, 11 Feb 2021 10:26:12 +0000 (UTC)
commit 9fcbf3d0f928a4ed818928bea639d517dcc5a49b
Author: Leleat <atule pm me>
Date: Wed Feb 10 02:18:19 2021 +0100
extensions-app: Add description tooltip to rows
... to allow showing the full description in case the label is ellipsized.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1663>
subprojects/extensions-app/js/main.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/subprojects/extensions-app/js/main.js b/subprojects/extensions-app/js/main.js
index 624318197b..5b5a6e4036 100644
--- a/subprojects/extensions-app/js/main.js
+++ b/subprojects/extensions-app/js/main.js
@@ -421,8 +421,9 @@ var ExtensionRow = GObject.registerClass({
this._nameLabel.label = this.name;
- let desc = this._extension.metadata.description.split('\n')[0];
+ const desc = this._extension.metadata.description.split('\n')[0];
this._descriptionLabel.label = desc;
+ this._descriptionLabel.tooltip_text = desc;
this._revealButton.connect('clicked', () => {
this._revealer.reveal_child = !this._revealer.reveal_child;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]