[gnome-shell] status/location: Move to quick settings
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] status/location: Move to quick settings
- Date: Tue, 2 Aug 2022 16:09:06 +0000 (UTC)
commit c9a9e1ef528db050111b018c43d11db80abf2838
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Jul 27 04:43:39 2022 +0200
status/location: Move to quick settings
Another icon-only indicator, so another plain move.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2392>
js/ui/panel.js | 7 +++----
js/ui/status/location.js | 4 ++--
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index e13ac5cd6d..4dd8f33411 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -390,13 +390,11 @@ class AggregateMenu extends PanelMenu.Button {
this._volume = new imports.ui.status.volume.Indicator();
this._brightness = new imports.ui.status.brightness.Indicator();
this._system = new imports.ui.status.system.Indicator();
- this._location = new imports.ui.status.location.Indicator();
this._nightLight = new imports.ui.status.nightLight.Indicator();
this._thunderbolt = new imports.ui.status.thunderbolt.Indicator();
this._indicators.add_child(this._remoteAccess);
this._indicators.add_child(this._thunderbolt);
- this._indicators.add_child(this._location);
this._indicators.add_child(this._nightLight);
if (this._network)
this._indicators.add_child(this._network);
@@ -417,7 +415,6 @@ class AggregateMenu extends PanelMenu.Button {
this.menu.addMenuItem(this._bluetooth.menu);
this.menu.addMenuItem(this._remoteAccess.menu);
- this.menu.addMenuItem(this._location.menu);
this.menu.addMenuItem(this._rfkill.menu);
this.menu.addMenuItem(this._power.menu);
this.menu.addMenuItem(this._powerProfiles.menu);
@@ -425,7 +422,6 @@ class AggregateMenu extends PanelMenu.Button {
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
this.menu.addMenuItem(this._system.menu);
- menuLayout.addSizeChild(this._location.menu.actor);
menuLayout.addSizeChild(this._rfkill.menu.actor);
menuLayout.addSizeChild(this._power.menu.actor);
menuLayout.addSizeChild(this._powerProfiles.menu.actor);
@@ -445,10 +441,13 @@ class QuickSettings extends PanelMenu.Button {
this.setMenu(new QuickSettingsMenu(this, N_QUICK_SETTINGS_COLUMNS));
+ this._location = new imports.ui.status.location.Indicator();
this._unsafeMode = new UnsafeModeIndicator();
+ this._indicators.add_child(this._location);
this._indicators.add_child(this._unsafeMode);
+ this._addItems(this._location.quickSettingsItems);
this._addItems(this._unsafeMode.quickSettingsItems);
}
diff --git a/js/ui/status/location.js b/js/ui/status/location.js
index 1d4db65ea4..116272d157 100644
--- a/js/ui/status/location.js
+++ b/js/ui/status/location.js
@@ -4,9 +4,9 @@
const { Clutter, Gio, GLib, GObject, Shell, St } = imports.gi;
const Dialog = imports.ui.dialog;
-const PanelMenu = imports.ui.panelMenu;
const ModalDialog = imports.ui.modalDialog;
const PermissionStore = imports.misc.permissionStore;
+const {SystemIndicator} = imports.ui.quickSettings;
const { loadInterfaceXML } = imports.misc.fileUtils;
@@ -202,7 +202,7 @@ var GeoclueAgent = GObject.registerClass({
});
var Indicator = GObject.registerClass(
-class Indicator extends PanelMenu.SystemIndicator {
+class Indicator extends SystemIndicator {
_init() {
super._init();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]