quickSettings: Override StButton:label property
StButton already has a :label property, so we should override it instead of shadowing it with a new property of the same name, like we already do for :icon-name. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2462>
This commit is contained in:
parent
a6244e34de
commit
646cb41e83
@ -34,13 +34,11 @@ var QuickSettingsItem = GObject.registerClass({
|
|||||||
|
|
||||||
var QuickToggle = GObject.registerClass({
|
var QuickToggle = GObject.registerClass({
|
||||||
Properties: {
|
Properties: {
|
||||||
|
'label': GObject.ParamSpec.override('label', St.Button),
|
||||||
'icon-name': GObject.ParamSpec.override('icon-name', St.Button),
|
'icon-name': GObject.ParamSpec.override('icon-name', St.Button),
|
||||||
'gicon': GObject.ParamSpec.object('gicon', '', '',
|
'gicon': GObject.ParamSpec.object('gicon', '', '',
|
||||||
GObject.ParamFlags.READWRITE,
|
GObject.ParamFlags.READWRITE,
|
||||||
Gio.Icon),
|
Gio.Icon),
|
||||||
'label': GObject.ParamSpec.string('label', '', '',
|
|
||||||
GObject.ParamFlags.READWRITE,
|
|
||||||
''),
|
|
||||||
},
|
},
|
||||||
}, class QuickToggle extends QuickSettingsItem {
|
}, class QuickToggle extends QuickSettingsItem {
|
||||||
_init(params) {
|
_init(params) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user