[gnome-shell] NotificationDaemon: fix fallout from db75734774e97f735b9d5da36ef04c7fa043b26d



commit 114d32a28f3b594419f7e8cd332e169f0fef1519
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun Aug 11 18:58:46 2013 +0200

    NotificationDaemon: fix fallout from db75734774e97f735b9d5da36ef04c7fa043b26d
    
    The public API of ShellAppSystem was changed, now both the desktop
    and startup wmclass must be looked up.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705801

 js/ui/notificationDaemon.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index 1a49827..de42711 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -734,7 +734,11 @@ const Source = new Lang.Class({
             return app;
 
         if (this.trayIcon) {
-            app = Shell.AppSystem.get_default().lookup_wmclass(this.trayIcon.wm_class);
+            app = Shell.AppSystem.get_default().lookup_startup_wmclass(this.trayIcon.wm_class);
+            if (app != null)
+                return app;
+
+            app = Shell.AppSystem.get_default().lookup_desktop_wmclass(this.trayIcon.wm_class);
             if (app != null)
                 return app;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]