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
This commit is contained in:
parent
bea2d40f79
commit
02078255ea
@ -513,6 +513,8 @@ AppWellIcon.prototype = {
|
|||||||
this._menuManager.addMenu(this._menu);
|
this._menuManager.addMenu(this._menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.actor.set_hover(true);
|
||||||
|
this.actor.show_tooltip();
|
||||||
this._menu.popup();
|
this._menu.popup();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@ -576,6 +578,9 @@ AppIconMenu.prototype = {
|
|||||||
|
|
||||||
PopupMenu.PopupMenu.prototype._init.call(this, source.actor, 0.5, side, 0);
|
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._source = source;
|
||||||
|
|
||||||
this.connect('activate', Lang.bind(this, this._onActivate));
|
this.connect('activate', Lang.bind(this, this._onActivate));
|
||||||
|
Loading…
Reference in New Issue
Block a user