[gnome-shell] NotificationDaemon: don't override the title for app notifications
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] NotificationDaemon: don't override the title for app notifications
- Date: Mon, 6 Aug 2012 21:11:04 +0000 (UTC)
commit 1e3796967e0b61a74c75c47ba066f25dbed0109a
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Aug 6 16:34:20 2012 +0200
NotificationDaemon: don't override the title for app notifications
If a source is associated with an app, ignore the app name provided
by libnotify, as that is often garbage.
This fixes the "XChat-GNOME OSD" problem.
https://bugzilla.gnome.org/show_bug.cgi?id=681143
js/ui/notificationDaemon.js | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index 8fdb9e0..0eee59b 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -629,6 +629,16 @@ const Source = new Lang.Class({
}
},
+ setTitle: function(title) {
+ // Do nothing if .app is set, we don't want to override the
+ // app name with whatever is provided through libnotify (usually
+ // garbage)
+ if (this.app)
+ return;
+
+ this.parent(title);
+ },
+
open: function(notification) {
this.destroyNonResidentNotifications();
this.openApp();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]