[gnome-shell/wip/new-notifications: 551/569] notificationDaemon: Remove the special-case hack for system tray icons
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/new-notifications: 551/569] notificationDaemon: Remove the special-case hack for system tray icons
- Date: Tue, 3 Jun 2014 18:02:57 +0000 (UTC)
commit 14bc748cea45afaf9fd68550d2289de0ddf77b47
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed May 28 15:24:22 2014 -0400
notificationDaemon: Remove the special-case hack for system tray icons
Nothing in the system actually has a standard system tray icon anymore,
so this hack isn't necessary.
js/ui/notificationDaemon.js | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index dd25661..6e78bf5 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -91,21 +91,6 @@ const rewriteRules = {
]
};
-const STANDARD_TRAY_ICON_IMPLEMENTATIONS = {
- 'bluetooth-applet': 'bluetooth',
- 'gnome-volume-control-applet': 'volume', // renamed to gnome-sound-applet
- // when moved to control center
- 'gnome-sound-applet': 'volume',
- 'nm-applet': 'network',
- 'gnome-power-manager': 'battery',
- 'keyboard': 'keyboard',
- 'a11y-keyboard': 'a11y',
- 'kbd-scrolllock': 'keyboard',
- 'kbd-numlock': 'keyboard',
- 'kbd-capslock': 'keyboard',
- 'ibus-ui-gtk': 'keyboard'
-};
-
const FdoNotificationDaemon = new Lang.Class({
Name: 'FdoNotificationDaemon',
@@ -509,10 +494,6 @@ const FdoNotificationDaemon = new Lang.Class({
},
_onTrayIconAdded: function(o, icon) {
- let wmClass = icon.wm_class ? icon.wm_class.toLowerCase() : '';
- if (STANDARD_TRAY_ICON_IMPLEMENTATIONS[wmClass] !== undefined)
- return;
-
let source = this._getSource(icon.title || icon.wm_class || C_("program", "Unknown"), icon.pid,
null, null, icon);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]