MoreLink: Ignore calls to activate() if the actor isn't visible

This fixes (another time) the bug about the "Recent Items" label
being clickable when there are no items.

https://bugzilla.gnome.org/show_bug.cgi?id=582037
This commit is contained in:
Siegfried-Angel Gevatter Pujals 2010-07-27 16:54:58 +02:00
parent e287aa10e3
commit 5cb2ea04f7

View File

@ -583,6 +583,9 @@ MoreLink.prototype = {
},
activate: function() {
if (!this.actor.visible)
return true; // If the link isn't visible we don't want the header to react
// to clicks
if (this.pane == null) {
// Ensure the pane is created; the activated handler will call setPane
this.emit('activated');