[gnome-shell] MoreLink: Ignore calls to activate() if the actor isn't visible
- From: Siegfried-Angel Gevatter Pujals <sgevatter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] MoreLink: Ignore calls to activate() if the actor isn't visible
- Date: Tue, 27 Jul 2010 15:00:41 +0000 (UTC)
commit 5cb2ea04f7e8c2eb146763cfe701a2461d17053f
Author: Siegfried-Angel Gevatter Pujals <rainct ubuntu com>
Date: Tue Jul 27 16:54:58 2010 +0200
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
js/ui/dash.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index 4971e81..982e9c7 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -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');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]