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:
Florian Müllner 2022-08-23 01:30:18 +02:00 committed by Marge Bot
parent a6244e34de
commit 646cb41e83

View File

@ -34,13 +34,11 @@ var QuickSettingsItem = GObject.registerClass({
var QuickToggle = GObject.registerClass({
Properties: {
'label': GObject.ParamSpec.override('label', St.Button),
'icon-name': GObject.ParamSpec.override('icon-name', St.Button),
'gicon': GObject.ParamSpec.object('gicon', '', '',
GObject.ParamFlags.READWRITE,
Gio.Icon),
'label': GObject.ParamSpec.string('label', '', '',
GObject.ParamFlags.READWRITE,
''),
},
}, class QuickToggle extends QuickSettingsItem {
_init(params) {