From a703e192ed4cd5df06f908e733ea4a28481bf95c Mon Sep 17 00:00:00 2001 From: Andy Holmes Date: Mon, 7 Aug 2023 11:48:45 -0700 Subject: [PATCH] notificationDaemon: Export notification source classes Out of the members of the notification daemon(s), these are the most necessary and flexible to override. The daemons are used as singletons and notifications are rather temporary, while the sources are more flexible and make the most sense to override (and revert). Part-of: --- js/ui/notificationDaemon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 31a871d04..a11e087f7 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -343,7 +343,7 @@ class FdoNotificationDaemon { } } -const FdoNotificationDaemonSource = GObject.registerClass( +export const FdoNotificationDaemonSource = GObject.registerClass( class FdoNotificationDaemonSource extends MessageTray.Source { _init(title, pid, sender, appId) { this.pid = pid; @@ -560,7 +560,7 @@ function getPlatformData() { function InvalidAppError() {} -const GtkNotificationDaemonAppSource = GObject.registerClass( +export const GtkNotificationDaemonAppSource = GObject.registerClass( class GtkNotificationDaemonAppSource extends MessageTray.Source { _init(appId) { let objectPath = objectPathFromAppId(appId);