popupMenu: Display the proper animations for popup menus
BoxPointer's API changed to take a BoxPointer.PopupAnimation enumeration value, but the code was accidentally replaced with older code when porting the PopupMenuManager code to GrabHelper. https://bugzilla.gnome.org/show_bug.cgi?id=689954
This commit is contained in:
parent
13a2b28bf1
commit
ca2ee22827
@ -2133,11 +2133,12 @@ const PopupMenuManager = new Lang.Class({
|
||||
},
|
||||
|
||||
_changeMenu: function(newMenu) {
|
||||
if (this.activeMenu) {
|
||||
this._closeMenu(this.activeMenu);
|
||||
newMenu.open(false);
|
||||
let oldMenu = this.activeMenu;
|
||||
if (oldMenu) {
|
||||
oldMenu.close(BoxPointer.PopupAnimation.FADE);
|
||||
newMenu.open(BoxPointer.PopupAnimation.FADE);
|
||||
} else {
|
||||
newMenu.open(true);
|
||||
newMenu.open(BoxPointer.PopupAnimation.FULL);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user