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>
This commit is contained in:
Leleat 2021-02-10 02:18:19 +01:00 committed by Florian Müllner
parent 0aab90bb7f
commit 9fcbf3d0f9

View File

@ -421,8 +421,9 @@ var ExtensionRow = GObject.registerClass({
this._nameLabel.label = this.name; 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.label = desc;
this._descriptionLabel.tooltip_text = desc;
this._revealButton.connect('clicked', () => { this._revealButton.connect('clicked', () => {
this._revealer.reveal_child = !this._revealer.reveal_child; this._revealer.reveal_child = !this._revealer.reveal_child;