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:
@@ -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());
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user