[gnome-shell] quickSettings: Override StButton:label property
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] quickSettings: Override StButton:label property
- Date: Wed, 31 Aug 2022 16:44:13 +0000 (UTC)
commit 646cb41e830396ea59c4e53f5c50f8a8694ad83c
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Aug 23 01:30:18 2022 +0200
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>
js/ui/quickSettings.js | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/js/ui/quickSettings.js b/js/ui/quickSettings.js
index faa87601fc..822893b782 100644
--- a/js/ui/quickSettings.js
+++ b/js/ui/quickSettings.js
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]