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
This commit is contained in:
parent
fc59e222d2
commit
2466eb3132
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
const DBus = imports.dbus;
|
const DBus = imports.dbus;
|
||||||
|
|
||||||
|
const Config = imports.misc.config;
|
||||||
const ExtensionSystem = imports.ui.extensionSystem;
|
const ExtensionSystem = imports.ui.extensionSystem;
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
|
|
||||||
@ -23,7 +24,13 @@ const GnomeShellIface = {
|
|||||||
signals: [],
|
signals: [],
|
||||||
properties: [{ name: 'OverviewActive',
|
properties: [{ name: 'OverviewActive',
|
||||||
signature: 'b',
|
signature: 'b',
|
||||||
access: 'readwrite' }]
|
access: 'readwrite' },
|
||||||
|
{ name: 'ApiVersion',
|
||||||
|
signature: 'i',
|
||||||
|
access: 'read' },
|
||||||
|
{ name: 'ShellVersion',
|
||||||
|
signature: 's',
|
||||||
|
access: 'read' }]
|
||||||
};
|
};
|
||||||
|
|
||||||
function GnomeShell() {
|
function GnomeShell() {
|
||||||
@ -82,7 +89,11 @@ GnomeShell.prototype = {
|
|||||||
Main.overview.show();
|
Main.overview.show();
|
||||||
else
|
else
|
||||||
Main.overview.hide();
|
Main.overview.hide();
|
||||||
}
|
},
|
||||||
|
|
||||||
|
ApiVersion: 1,
|
||||||
|
|
||||||
|
ShellVersion: Config.PACKAGE_VERSION
|
||||||
};
|
};
|
||||||
|
|
||||||
DBus.conformExport(GnomeShell.prototype, GnomeShellIface);
|
DBus.conformExport(GnomeShell.prototype, GnomeShellIface);
|
||||||
|
Loading…
Reference in New Issue
Block a user