message-tray: Fix dismissing notifications
Commit 31b12635d1
fixed links in notifications again, but blocked
clicks on normal labels getting through to the notification. Fix
this, so that both links and dismissing notifications work again.
https://bugzilla.gnome.org/show_bug.cgi?id=645839
This commit is contained in:
parent
8da4e6ce5e
commit
25b743b03c
@ -108,12 +108,12 @@ URLHighlighter.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.setMarkup(text, allowMarkup);
|
this.setMarkup(text, allowMarkup);
|
||||||
this.actor.connect('button-press-event', function() {
|
this.actor.connect('button-press-event', Lang.bind(this, function(actor, event) {
|
||||||
// Keep Notification.actor from seeing this and taking
|
// Keep Notification.actor from seeing this and taking
|
||||||
// a pointer grab, which would block our button-release-event
|
// a pointer grab, which would block our button-release-event
|
||||||
// handler
|
// handler, if an URL is clicked
|
||||||
return true;
|
return this._findUrlAtPos(event) != -1;
|
||||||
});
|
}));
|
||||||
this.actor.connect('button-release-event', Lang.bind(this, function (actor, event) {
|
this.actor.connect('button-release-event', Lang.bind(this, function (actor, event) {
|
||||||
let urlId = this._findUrlAtPos(event);
|
let urlId = this._findUrlAtPos(event);
|
||||||
if (urlId != -1) {
|
if (urlId != -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user