












gnome-activity-journal - graphical user interface for Zeitgeist




gksudo gedit /usr/share/cinnamon/applets/menu@cinnamon.org/applet.jsconst MAX_RECENT_FILES = 20;




for (let id = 0; id < MAX_RECENT_FILES && id < this.RecentManager._infosByTimestamp.length; id++) {
let button = new RecentButton(this, this.RecentManager._infosByTimestamp[id]);
this._addEnterEvent(button, Lang.bind(this, function() {
this._clearPrevAppSelection(button.actor);
button.actor.style_class = "menu-application-button-selected";
this._scrollToButton(button);
this.selectedAppDescription.set_text(button.file.uri.slice(7));
}));
button.actor.connect('leave-event', Lang.bind(this, function() {
button.actor.style_class = "menu-application-button";
this._previousSelectedActor = button.actor;
this.selectedAppTitle.set_text("");
this.selectedAppDescription.set_text("");
}));
this._recentButtons.push(button);
this.applicationsBox.add_actor(button.actor);
} for (let items = 0, id = 0; items < MAX_RECENT_FILES && id < this.RecentManager._infosByTimestamp.length; id++) {
let button = new RecentButton(this, this.RecentManager._infosByTimestamp[id]);
if (/* somehow test if button.file.uri exists, and if it doesn't then this if statement should be true so the loop continues with the next id */) {
continue;
}
this._addEnterEvent(button, Lang.bind(this, function() {
this._clearPrevAppSelection(button.actor);
button.actor.style_class = "menu-application-button-selected";
this._scrollToButton(button);
this.selectedAppDescription.set_text(button.file.uri.slice(7));
}));
button.actor.connect('leave-event', Lang.bind(this, function() {
button.actor.style_class = "menu-application-button";
this._previousSelectedActor = button.actor;
this.selectedAppTitle.set_text("");
this.selectedAppDescription.set_text("");
}));
this._recentButtons.push(button);
this.applicationsBox.add_actor(button.actor);
items++;
}








Users browsing this forum: jewittenator and 17 guests