popupMenu: Use regular method style
We don't define methods on a single line anywhere else, so don't do that here either for consistency. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/606
This commit is contained in:
parent
3c382c4bbe
commit
b3736f45e6
@ -919,9 +919,16 @@ var PopupDummyMenu = class {
|
||||
return this.getSensitive();
|
||||
}
|
||||
|
||||
open() { this.emit('open-state-changed', true); }
|
||||
close() { this.emit('open-state-changed', false); }
|
||||
open() {
|
||||
this.emit('open-state-changed', true);
|
||||
}
|
||||
|
||||
close() {
|
||||
this.emit('open-state-changed', false);
|
||||
}
|
||||
|
||||
toggle() {}
|
||||
|
||||
destroy() {
|
||||
this.emit('destroy');
|
||||
}
|
||||
@ -1088,8 +1095,13 @@ var PopupMenuSection = class extends PopupMenuBase {
|
||||
|
||||
// deliberately ignore any attempt to open() or close(), but emit the
|
||||
// corresponding signal so children can still pick it up
|
||||
open() { this.emit('open-state-changed', true); }
|
||||
close() { this.emit('open-state-changed', false); }
|
||||
open() {
|
||||
this.emit('open-state-changed', true);
|
||||
}
|
||||
|
||||
close() {
|
||||
this.emit('open-state-changed', false);
|
||||
}
|
||||
};
|
||||
|
||||
var PopupSubMenuMenuItem = GObject.registerClass(
|
||||
|
Loading…
Reference in New Issue
Block a user