popupMenu: Introduce PopupDummyMenu
This is designed for things like the activities button that sort of need a menu to make navigation work, but not really have it do anything. https://bugzilla.gnome.org/show_bug.cgi?id=689109
This commit is contained in:
@ -112,7 +112,7 @@ const Button = new Lang.Class({
|
||||
this.actor.connect('key-press-event', Lang.bind(this, this._onSourceKeyPress));
|
||||
|
||||
if (dontCreateMenu)
|
||||
this.menu = null;
|
||||
this.menu = new PopupMenu.PopupDummyMenu(this.actor);
|
||||
else
|
||||
this.setMenu(new PopupMenu.PopupMenu(this.actor, menuAlignment, St.Side.TOP, 0));
|
||||
|
||||
|
Reference in New Issue
Block a user