From 02078255ea00b41ba48e0c35a7837565cdb2797d Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 22 Mar 2011 10:43:27 -0400 Subject: [PATCH] appDisplay: show hover and tooltip while the menu is up While we have menu for an app icon open, we want to show the prelight for the item instead of removing the prelight when the user mouses away from the item and into the menu, and if there's a tooltip (like for the dash), we want to show the tooltip immediately when the menu is popped up. https://bugzilla.gnome.org/show_bug.cgi?id=642871 --- js/ui/appDisplay.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index bfe5ff70a..2623a4607 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -513,6 +513,8 @@ AppWellIcon.prototype = { this._menuManager.addMenu(this._menu); } + this.actor.set_hover(true); + this.actor.show_tooltip(); this._menu.popup(); return false; @@ -576,6 +578,9 @@ AppIconMenu.prototype = { PopupMenu.PopupMenu.prototype._init.call(this, source.actor, 0.5, side, 0); + // We want to keep the item hovered while the menu is up + this.blockSourceEvents = true; + this._source = source; this.connect('activate', Lang.bind(this, this._onActivate));