MCPcopy Create free account
hub / github.com/GNOME/gnome-shell / display

Method display

js/ui/workspaceSwitcherPopup.js:83–101  ·  view source on GitHub ↗
(activeWorkspaceIndex)

Source from the content-addressed store, hash-verified

81 }
82
83 display(activeWorkspaceIndex) {
84 this._activeWorkspaceIndex = activeWorkspaceIndex;
85
86 if (this._timeoutId !== 0)
87 GLib.source_remove(this._timeoutId);
88 this._timeoutId = GLib.timeout_add_once(GLib.PRIORITY_DEFAULT, DISPLAY_TIMEOUT, this._onTimeout.bind(this));
89 GLib.Source.set_name_by_id(this._timeoutId, '[gnome-shell] this._onTimeout');
90
91 this._redisplayAllPopups();
92
93 const duration = this.visible ? 0 : ANIMATION_TIME;
94 this.show();
95 this.opacity = 0;
96 this.ease({
97 opacity: 255,
98 duration,
99 mode: Clutter.AnimationMode.EASE_OUT_QUAD,
100 });
101 }
102
103 _onTimeout() {
104 this._timeoutId = 0;

Callers 1

Calls 2

_redisplayAllPopupsMethod · 0.95
showMethod · 0.45

Tested by

no test coverage detected