[gnome-shell] panel: show spinner animation for busy applications
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] panel: show spinner animation for busy applications
- Date: Fri, 19 Apr 2013 17:56:05 +0000 (UTC)
commit 5ecf40e967cfefefe379b1e6d2b65d31e2c2e792
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 3 14:18:43 2013 -0400
panel: show spinner animation for busy applications
When the active application signals its busy state, we now will show a
spinner on the panel, next to the application name.
https://bugzilla.gnome.org/show_bug.cgi?id=697207
js/ui/panel.js | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index 303e241..5d2952c 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -566,9 +566,14 @@ const AppMenuButton = new Lang.Class({
}
if (targetApp == this._targetApp) {
- if (targetApp && targetApp.get_state() != Shell.AppState.STARTING) {
+ if (targetApp &&
+ targetApp.get_state() != Shell.AppState.STARTING &&
+ targetApp.get_state() != Shell.AppState.BUSY) {
this.stopAnimation();
this._maybeSetMenu();
+ } else if (targetApp &&
+ targetApp.get_state() == Shell.AppState.BUSY) {
+ this.startAnimation();
}
return;
}
@@ -601,7 +606,8 @@ const AppMenuButton = new Lang.Class({
this._iconBox.set_child(icon);
this._iconBox.show();
- if (targetApp.get_state() == Shell.AppState.STARTING)
+ if (targetApp.get_state() == Shell.AppState.STARTING ||
+ targetApp.get_state() == Shell.AppState.BUSY)
this.startAnimation();
else
this._maybeSetMenu();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]