various extensions: port to new ShellAppSystem API

shell_app_system_get_app() was renamed to lookup_app(), and
shell_app_activate() was renamed to shell_app_activate_full().
This commit is contained in:
Giovanni Campagna
2011-08-17 13:55:27 +02:00
parent 7e97c1440b
commit ab4436e728
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -68,8 +68,8 @@ DriveMenu.prototype = {
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
this.menu.addAction(_("Open file manager"), function(event) {
let appSystem = Shell.AppSystem.get_default();
let app = appSystem.get_app('nautilus.desktop');
app.activate(-1);
let app = appSystem.lookup_app('nautilus.desktop');
app.activate_full(-1, event.get_time());
});
},
+2 -2
View File
@@ -160,8 +160,8 @@ Source.prototype = {
}
}
let app = Shell.AppSystem.get_default().get_app('gajim.desktop');
app.activate_window(null, global.get_current_time());
let app = Shell.AppSystem.get_default().lookup_app('gajim.desktop');
app.activate(-1);
},
_onChatState: function(emitter, data) {
+1 -1
View File
@@ -20,7 +20,7 @@ Indicator.prototype = {
reactive: true});
this.actor.connect('repaint', Lang.bind(this, this._draw));
this.actor.connect('button-press-event', function() {
let app = Shell.AppSystem.get_default().get_app("gnome-system-monitor.desktop");
let app = Shell.AppSystem.get_default().lookup_app('gnome-system-monitor.desktop');
app.open_new_window(-1);
});