status: use Shell.AppSystem to launch settings panels

Different methos are being used to launch the control-center panels of each
status icon. Standarize on Shell.AppSystem.
This also fixes the network icon using a non-existant Util.spawnDesktop()
method.

Bug #645091
This commit is contained in:
Diego Escalante Urrelo
2011-03-17 21:05:53 -05:00
parent 99efde5673
commit 0d963df7b3
3 changed files with 6 additions and 3 deletions

View File

@ -74,7 +74,8 @@ XKBIndicator.prototype = {
Util.spawn(['gkbd-keyboard-display', '-g', String(this._config.get_current_group() + 1)]);
}));
this.menu.addAction(_("Localization Settings"), function() {
Util.spawn(['gnome-control-center', 'region']);
let app = Shell.AppSystem.get_default().get_app('gnome-region-panel.desktop');
app.activate(-1);
});
},