From 5d27a5a42a7e3e36eb88c54b63a2b314480705d0 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 13 Nov 2020 14:34:22 -0300 Subject: [PATCH] appDisplay: Factor out function The function to update the multiline state of the title label will be reused by the next commit, so move it into a separate method. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1496 --- js/ui/appDisplay.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 4bc662ea9..9c09a84c9 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1495,7 +1495,7 @@ class AppViewItem extends St.Button { } } - _onHover() { + _updateMultiline() { if (!this.icon.label) return; @@ -1524,6 +1524,10 @@ class AppViewItem extends St.Button { }); } + _onHover() { + this._updateMultiline(); + } + _onDragBegin() { this._dragging = true; this.scaleAndFade();