summaryrefslogtreecommitdiffstats
path: root/extensions/vertical-workspaces/iconGrid.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 16:01:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 16:01:24 +0000
commitc661a111be8aa600969cc61f2cf0e65a073185e5 (patch)
treeba27288b366a9bf954f6bd20e261af5cc055608c /extensions/vertical-workspaces/iconGrid.js
parentAdding no-overview entry in manpage. (diff)
downloadgnome-shell-extensions-extra-c661a111be8aa600969cc61f2cf0e65a073185e5.tar.xz
gnome-shell-extensions-extra-c661a111be8aa600969cc61f2cf0e65a073185e5.zip
Adding vertical-workspaces version 23.5 [f987be5].
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