popupMenu: Use .selected class for active item
Currently it uses .active, which matches the code more closely, but is confusingly close to :active; so .selected it is ... https://bugzilla.gnome.org/show_bug.cgi?id=745246
This commit is contained in:
@ -169,10 +169,10 @@ const PopupBaseMenuItem = new Lang.Class({
|
||||
if (activeChanged) {
|
||||
this.active = active;
|
||||
if (active) {
|
||||
this.actor.add_style_class_name('active');
|
||||
this.actor.add_style_class_name('selected');
|
||||
this.actor.grab_key_focus();
|
||||
} else {
|
||||
this.actor.remove_style_class_name('active');
|
||||
this.actor.remove_style_class_name('selected');
|
||||
// Remove the CSS active state if the user press the button and
|
||||
// while holding moves to another menu item, so we don't paint all items.
|
||||
// The correct behaviour would be to set the new item with the CSS
|
||||
|
Reference in New Issue
Block a user