Add finer-grained signals to ShellAppMonitor, update appDisplay

This commit is contained in:
Dan Winship
2009-08-12 16:05:25 -04:00
parent f7d85e618c
commit 15a3f39f65
4 changed files with 59 additions and 16 deletions

View File

@ -193,7 +193,10 @@ AppDisplay.prototype = {
this._appSystem.connect('favorites-changed', Lang.bind(this, function(appSys) {
this._redisplay(false);
}));
this._appMonitor.connect('changed', Lang.bind(this, function(monitor) {
this._appMonitor.connect('app-added', Lang.bind(this, function(monitor) {
this._redisplay(false);
}));
this._appMonitor.connect('app-removed', Lang.bind(this, function(monitor) {
this._redisplay(false);
}));
@ -761,7 +764,10 @@ AppWell.prototype = {
this._appSystem.connect('favorites-changed', Lang.bind(this, function(appSys) {
this._redisplay();
}));
this._appMonitor.connect('changed', Lang.bind(this, function(monitor) {
this._appMonitor.connect('app-added', Lang.bind(this, function(monitor) {
this._redisplay();
}));
this._appMonitor.connect('app-removed', Lang.bind(this, function(monitor) {
this._redisplay();
}));