/usr/share/cinnamon/applets like below:
Code: Select all
for ( let i = 0; i < launchers.length; ++i ) {
let app = appSys.lookup_app(launchers[i]);
if (app) {
let button = new FavoritesButton(this, app, launchers.length + 1);
this._favoritesButtons[app] = button;
this.favoritesBox.add_actor(button.actor, { y_align: St.Align.END, y_fill: false });
this._addEnterEvent(button, Lang.bind(this, this._favEnterEvent, button));
button.actor.connect('leave-event', Lang.bind(this, this._favLeaveEvent, button));
++j;
}
}
// //Separator
// if (launchers.length != 0) {
// let separator = new PopupMenu.PopupSeparatorMenuItem();
// this.favoritesBox.add_actor(separator.actor, { y_align: St.Align.END, y_fill: false });
// }
//
// //Lock screen
// let button = new SystemButton(this, "system-lock-screen", launchers.length + 3,
... 24 more lines ...
// this.favoritesBox.add_actor(button.actor, { y_align: St.Align.END, y_fill: false });
//
// //Logout button
// let button = new SystemButton(this, "system-log-out", launchers.length + 3,
... 11 more lines ...
// this.favoritesBox.add_actor(button.actor, { y_align: St.Align.END, y_fill: false });
//Shutdown button
button = new SystemButton(this, "system-shutdown" launchers.length + 1,