From 994a37105b333ae9b72f285580a7847cd3ca4c5d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Tue, 23 Jul 2019 19:42:16 +0200
Subject: [PATCH 09/13] appDisplay: Add missing semicolon
This slipped through in commit eaa320 ...
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/640
---
js/ui/appDisplay.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 8def0897f..e9c12462d 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -131,62 +131,63 @@ var BaseAppView = new Lang.Class({
this._items = {};
this._allItems = [];
},
_keyFocusIn(actor) {
// Nothing by default
},
removeAll() {
this._grid.destroyAll();
this._items = {};
this._allItems = [];
},
_redisplay() {
this.removeAll();
this._loadApps();
},
getAllItems() {
return this._allItems;
},
hasItem(id) {
return this._items[id] !== undefined;
},
addItem(icon) {
let id = icon.id;
+
if (this.hasItem(id))
- throw new Error(`icon with id ${id} already added to view`)
+ throw new Error(`icon with id ${id} already added to view`);
this._allItems.push(icon);
this._items[id] = icon;
},
_compareItems(a, b) {
return a.name.localeCompare(b.name);
},
loadGrid() {
this._allItems.sort(this._compareItems);
this._allItems.forEach(item => { this._grid.addItem(item); });
this.emit('view-loaded');
},
_selectAppInternal(id) {
if (this._items[id])
this._items[id].actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
else
log('No such application ' + id);
},
selectApp(id) {
if (this._items[id] && this._items[id].actor.mapped) {
this._selectAppInternal(id);
} else if (this._items[id]) {
// Need to wait until the view is mapped
let signalId = this._items[id].actor.connect('notify::mapped',
actor => {
if (actor.mapped) {
--
2.25.1