cleanup: Define GObject accessors in camelCase
gjs is smart enough to match a propertyName getter/setter to the corresponding property-name GObject property, so use that and get rid of the eslint camelcase rule exceptions. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1611>
This commit is contained in:
@ -336,13 +336,11 @@ var ListSectionItem = GObject.registerClass({
|
||||
this.add_child(textLayout);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
get icon_actor() {
|
||||
get iconActor() {
|
||||
return this._iconActorBin.get_child();
|
||||
}
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
set icon_actor(actor) {
|
||||
set iconActor(actor) {
|
||||
this._iconActorBin.set_child(actor);
|
||||
this.notify('icon-actor');
|
||||
}
|
||||
|
Reference in New Issue
Block a user