[gnome-shell] shellDBus: Add a few version parameters
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shellDBus: Add a few version parameters
- Date: Thu, 4 Aug 2011 17:51:22 +0000 (UTC)
commit 2466eb3132b8021a1c80231a717ce3ada1b43e26
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Jun 29 20:09:00 2011 -0400
shellDBus: Add a few version parameters
Add ShellVersion, designed for detecting OUT_OF_DATE extensions so they can't
be installed, as well as ApiVersion, designed for backwards-compatibility with
the SweetTooth web-app, which must support all shell versions.
https://bugzilla.gnome.org/show_bug.cgi?id=654770
js/ui/shellDBus.js | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js
index ee41491..f423ca1 100644
--- a/js/ui/shellDBus.js
+++ b/js/ui/shellDBus.js
@@ -2,6 +2,7 @@
const DBus = imports.dbus;
+const Config = imports.misc.config;
const ExtensionSystem = imports.ui.extensionSystem;
const Main = imports.ui.main;
@@ -23,7 +24,13 @@ const GnomeShellIface = {
signals: [],
properties: [{ name: 'OverviewActive',
signature: 'b',
- access: 'readwrite' }]
+ access: 'readwrite' },
+ { name: 'ApiVersion',
+ signature: 'i',
+ access: 'read' },
+ { name: 'ShellVersion',
+ signature: 's',
+ access: 'read' }]
};
function GnomeShell() {
@@ -82,7 +89,11 @@ GnomeShell.prototype = {
Main.overview.show();
else
Main.overview.hide();
- }
+ },
+
+ ApiVersion: 1,
+
+ ShellVersion: Config.PACKAGE_VERSION
};
DBus.conformExport(GnomeShell.prototype, GnomeShellIface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]