notificationDaemon: Do the same for GTK+ notifications

There is not good reason why activating a GTK+ notification should
behave fundamentally different from fd.o notifications - we don't
raise the app because we expect it to perform an appropriate action,
but that does not include closing overview or calendar for us ...

https://bugzilla.gnome.org/show_bug.cgi?id=744817
This commit is contained in:
Florian Müllner 2015-02-14 06:01:20 +01:00
parent 11b3ed276b
commit b00f122fcf

View File

@ -716,11 +716,17 @@ const GtkNotificationDaemonAppSource = new Lang.Class({
activateAction: function(actionId, target) {
let app = this._createApp();
app.ActivateActionRemote(actionId, target ? [target] : [], getPlatformData());
Main.overview.hide();
Main.panel.closeCalendar();
},
open: function() {
let app = this._createApp();
app.ActivateRemote(getPlatformData());
Main.overview.hide();
Main.panel.closeCalendar();
},
addNotification: function(notificationId, notificationParams, showBanner) {