gnome-shell/js/ui/components
Florian Müllner 3fc7ed4088 notification: Pass policy in the Source contructor
Commit 932ccac1 changed Source to use a regular constructor
instead of `_init()`.

Unfortunately that results in ordering issues for subclasses
that override `_createPolicy()`, if that method needs to access
any properties that are set in the constructor (as `this` is
only available after chaining up to the parent).

We can fix that by simply setting the policy from the constructor,
instead of relying on some overriden method being called.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3170>
2024-02-09 11:12:51 +00:00
..
automountManager.js cleanup: Use consistent 4-space indent 2023-08-09 15:10:37 +00:00
autorunManager.js notification: Use the same Source for showing system notifications 2024-02-06 17:25:01 +00:00
keyring.js cleanup: Use consistent 4-space indent 2023-08-09 15:10:37 +00:00
networkAgent.js notification: Use the same Source for showing system notifications 2024-02-06 17:25:01 +00:00
polkitAgent.js cleanup: Use type-safe comparisons 2023-08-09 15:10:38 +00:00
telepathyClient.js notification: Pass policy in the Source contructor 2024-02-09 11:12:51 +00:00