summaryrefslogtreecommitdiffstats
path: root/extensions/vertical-workspaces/iconGrid.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-05 07:44:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-05 08:57:36 +0000
commit4a62513b17d915afcae80b1adfb1b0cdcf86f748 (patch)
treea21f339a82d742682a1dfbf63d7fe9c43d58a3a2 /extensions/vertical-workspaces/iconGrid.js
parentAdding upstream version 20230204. (diff)
downloadgnome-shell-extensions-extra-4a62513b17d915afcae80b1adfb1b0cdcf86f748.tar.xz
gnome-shell-extensions-extra-4a62513b17d915afcae80b1adfb1b0cdcf86f748.zip
Adding upstream version 20230205.upstream/20230205
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'extensions/vertical-workspaces/iconGrid.js')
-rw-r--r--extensions/vertical-workspaces/iconGrid.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/extensions/vertical-workspaces/iconGrid.js b/extensions/vertical-workspaces/iconGrid.js
new file mode 100644
index 0000000..2b93efd
--- /dev/null
+++ b/extensions/vertical-workspaces/iconGrid.js
@@ -0,0 +1,26 @@
+/**
+ * Vertical Workspaces
+ * iconGrid.js
+ *
+ * @author GdH <G-dH@github.com>
+ * @copyright 2022 - 2023
+ * @license GPL-3.0
+ *
+ */
+
+'use strict';
+
+// ------------------ IconGrid - override -------------------------------------------------------------------------
+
+// workaround - silence page -2 error on gnome 43 during cleaning appgrid
+
+var IconGrid = {
+ getItemsAtPage: function(page) {
+ if (page < 0 || page > this.nPages)
+ return [];
+ //throw new Error(`Page ${page} does not exist at IconGrid`);
+
+ const layoutManager = this.layout_manager;
+ return layoutManager.getItemsAtPage(page);
+ }
+} \ No newline at end of file