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({
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user