[gnome-shell] appDisplay: Factor out function
- From: Florian MĂźllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] appDisplay: Factor out function
- Date: Fri, 13 Nov 2020 23:33:44 +0000 (UTC)
commit 5d27a5a42a7e3e36eb88c54b63a2b314480705d0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Nov 13 14:34:22 2020 -0300
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 4bc662ea9a..9c09a84c97 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]