mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-11 16:53:51 +01:00
Refactor: Use private instance methods instead of prefixing with _
This commit is contained in:
parent
cc118d7796
commit
e07411f9fd
2 changed files with 21 additions and 21 deletions
|
|
@ -21,15 +21,15 @@ var PrefsBoxOrderItemRow = GObject.registerClass({
|
|||
constructor(params = {}, item) {
|
||||
super(params);
|
||||
|
||||
this._associateItem(item);
|
||||
this._configureMenu();
|
||||
this.#associateItem(item);
|
||||
this.#configureMenu();
|
||||
}
|
||||
|
||||
/**
|
||||
* Associate `this` with an item.
|
||||
* @param {String} item
|
||||
*/
|
||||
_associateItem(item) {
|
||||
#associateItem(item) {
|
||||
this.item = item;
|
||||
|
||||
// Set `this._item_name_display_label` to something nicer, if the
|
||||
|
|
@ -42,7 +42,7 @@ var PrefsBoxOrderItemRow = GObject.registerClass({
|
|||
/**
|
||||
* Configure the menu.
|
||||
*/
|
||||
_configureMenu() {
|
||||
#configureMenu() {
|
||||
let menu = new Gio.Menu();
|
||||
menu.append("Forget", `prefsBoxOrderItemRow-${this.item}.forget`);
|
||||
this._menu_button.set_menu_model(menu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue