systemActions: Reindent properties
... so we can add another property using the new coding style without making surrounding code terribly inconsistent. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2202
This commit is contained in:
parent
1fa1333e13
commit
0c5716b018
@ -40,41 +40,34 @@ function getDefault() {
|
|||||||
|
|
||||||
const SystemActions = GObject.registerClass({
|
const SystemActions = GObject.registerClass({
|
||||||
Properties: {
|
Properties: {
|
||||||
'can-power-off': GObject.ParamSpec.boolean('can-power-off',
|
'can-power-off': GObject.ParamSpec.boolean(
|
||||||
'can-power-off',
|
'can-power-off', 'can-power-off', 'can-power-off',
|
||||||
'can-power-off',
|
GObject.ParamFlags.READABLE,
|
||||||
GObject.ParamFlags.READABLE,
|
false),
|
||||||
false),
|
'can-suspend': GObject.ParamSpec.boolean(
|
||||||
'can-suspend': GObject.ParamSpec.boolean('can-suspend',
|
'can-suspend', 'can-suspend', 'can-suspend',
|
||||||
'can-suspend',
|
GObject.ParamFlags.READABLE,
|
||||||
'can-suspend',
|
false),
|
||||||
GObject.ParamFlags.READABLE,
|
'can-lock-screen': GObject.ParamSpec.boolean(
|
||||||
false),
|
'can-lock-screen', 'can-lock-screen', 'can-lock-screen',
|
||||||
'can-lock-screen': GObject.ParamSpec.boolean('can-lock-screen',
|
GObject.ParamFlags.READABLE,
|
||||||
'can-lock-screen',
|
false),
|
||||||
'can-lock-screen',
|
'can-switch-user': GObject.ParamSpec.boolean(
|
||||||
GObject.ParamFlags.READABLE,
|
'can-switch-user', 'can-switch-user', 'can-switch-user',
|
||||||
false),
|
GObject.ParamFlags.READABLE,
|
||||||
'can-switch-user': GObject.ParamSpec.boolean('can-switch-user',
|
false),
|
||||||
'can-switch-user',
|
'can-logout': GObject.ParamSpec.boolean(
|
||||||
'can-switch-user',
|
'can-logout', 'can-logout', 'can-logout',
|
||||||
GObject.ParamFlags.READABLE,
|
GObject.ParamFlags.READABLE,
|
||||||
false),
|
false),
|
||||||
'can-logout': GObject.ParamSpec.boolean('can-logout',
|
'can-lock-orientation': GObject.ParamSpec.boolean(
|
||||||
'can-logout',
|
'can-lock-orientation', 'can-lock-orientation', 'can-lock-orientation',
|
||||||
'can-logout',
|
GObject.ParamFlags.READABLE,
|
||||||
GObject.ParamFlags.READABLE,
|
false),
|
||||||
false),
|
'orientation-lock-icon': GObject.ParamSpec.string(
|
||||||
'can-lock-orientation': GObject.ParamSpec.boolean('can-lock-orientation',
|
'orientation-lock-icon', 'orientation-lock-icon', 'orientation-lock-icon',
|
||||||
'can-lock-orientation',
|
GObject.ParamFlags.READWRITE,
|
||||||
'can-lock-orientation',
|
null),
|
||||||
GObject.ParamFlags.READABLE,
|
|
||||||
false),
|
|
||||||
'orientation-lock-icon': GObject.ParamSpec.string('orientation-lock-icon',
|
|
||||||
'orientation-lock-icon',
|
|
||||||
'orientation-lock-icon',
|
|
||||||
GObject.ParamFlags.READWRITE,
|
|
||||||
null),
|
|
||||||
},
|
},
|
||||||
}, class SystemActions extends GObject.Object {
|
}, class SystemActions extends GObject.Object {
|
||||||
_init() {
|
_init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user