[gnome-shell-extensions] various extensions: port to new ShellAppSystem API
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] various extensions: port to new ShellAppSystem API
- Date: Wed, 17 Aug 2011 11:56:59 +0000 (UTC)
commit ab4436e728073296af234adc24f885292ea56604
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Aug 17 13:55:27 2011 +0200
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().
extensions/drive-menu/extension.js | 4 ++--
extensions/gajim/extension.js | 4 ++--
extensions/systemMonitor/extension.js | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js
index 20c78b4..fc01884 100644
--- a/extensions/drive-menu/extension.js
+++ b/extensions/drive-menu/extension.js
@@ -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());
});
},
diff --git a/extensions/gajim/extension.js b/extensions/gajim/extension.js
index 9f97e9a..7dfeea3 100644
--- a/extensions/gajim/extension.js
+++ b/extensions/gajim/extension.js
@@ -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) {
diff --git a/extensions/systemMonitor/extension.js b/extensions/systemMonitor/extension.js
index e9231da..eb07f19 100644
--- a/extensions/systemMonitor/extension.js
+++ b/extensions/systemMonitor/extension.js
@@ -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);
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]