FdoNotification: Highlight difference between icon/image and app-icon

This just renames the `icon` variable to `appIcon` to make clear that
this icon is considered to be the app icon.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>
This commit is contained in:
Julian Sparber 2024-01-19 19:08:46 +01:00 committed by Marge Bot
parent 89c602cb62
commit f3cd0aa082

View File

@ -136,7 +136,7 @@ class FdoNotificationDaemon {
}
NotifyAsync(params, invocation) {
let [appName, replacesId, icon, summary, body, actions, hints, timeout] = params;
let [appName, replacesId, appIcon, summary, body, actions, hints, timeout] = params;
let id;
for (let hint in hints) {
@ -162,7 +162,7 @@ class FdoNotificationDaemon {
const ndata = {
appName,
icon,
appIcon,
summary,
body,
actions,
@ -188,7 +188,7 @@ class FdoNotificationDaemon {
}
_notifyForSource(source, ndata) {
const {icon, summary, body, actions, hints} = ndata;
const {appIcon, summary, body, actions, hints} = ndata;
let {notification} = ndata;
if (notification == null) {
@ -216,7 +216,7 @@ class FdoNotificationDaemon {
let gicon = this._imageForNotificationData(hints);
if (!gicon)
gicon = this._iconForNotificationData(icon);
gicon = this._iconForNotificationData(appIcon);
if (!gicon)
gicon = this._fallbackIconForNotificationData(hints);