messageTray: Remove deprecated code
Originally the Source method for showing notifications was "notify", which had to change when turning it into a GObject subclass to not clash with g_object_notify(). That change happened during the 3.36 cycle, so extensions have had two releases (a year) to adapt to the replacement. That seems long enough, so remove the deprecated compat code. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3848 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1749>
This commit is contained in:
parent
e854b26fa7
commit
16c7739170
@ -703,7 +703,7 @@ var Source = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
countUpdated() {
|
countUpdated() {
|
||||||
super.notify('count');
|
this.notify('count');
|
||||||
}
|
}
|
||||||
|
|
||||||
_createPolicy() {
|
_createPolicy() {
|
||||||
@ -775,21 +775,6 @@ var Source = GObject.registerClass({
|
|||||||
this.emit('notification-show', notification);
|
this.emit('notification-show', notification);
|
||||||
}
|
}
|
||||||
|
|
||||||
notify(propName) {
|
|
||||||
if (propName instanceof Notification) {
|
|
||||||
try {
|
|
||||||
throw new Error('Source.notify() has been moved to Source.showNotification()' +
|
|
||||||
'this code will break in the future');
|
|
||||||
} catch (e) {
|
|
||||||
logError(e);
|
|
||||||
this.showNotification(propName);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
super.notify(propName);
|
|
||||||
}
|
|
||||||
|
|
||||||
destroy(reason) {
|
destroy(reason) {
|
||||||
let notifications = this.notifications;
|
let notifications = this.notifications;
|
||||||
this.notifications = [];
|
this.notifications = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user