NotificationDaemon: fix fallout from db75734774

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
This commit is contained in:
Giovanni Campagna 2013-08-11 18:58:46 +02:00
parent cba5bca842
commit 114d32a28f

View File

@ -734,7 +734,11 @@ const Source = new Lang.Class({
return app; return app;
if (this.trayIcon) { 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) if (app != null)
return app; return app;
} }