[gnome-shell] appDisplay: show hover and tooltip while the menu is up



commit 02078255ea00b41ba48e0c35a7837565cdb2797d
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Mar 22 10:43:27 2011 -0400

    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 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index bfe5ff7..2623a46 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));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]