From 1d1c7bf669bb603f93cb3c122e2d939beb97a514 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 12 Jul 2024 18:02:16 +0300 Subject: [PATCH] draft reorder page --- src/Entity/Browser/Container/Tab.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Entity/Browser/Container/Tab.php b/src/Entity/Browser/Container/Tab.php index 43b0b945..48ed1aa5 100644 --- a/src/Entity/Browser/Container/Tab.php +++ b/src/Entity/Browser/Container/Tab.php @@ -85,7 +85,9 @@ class Tab ?\GtkWidget $child, int $page_num ) { - // @TODO + $this->reorderPage( + $page_num + ); } ); } @@ -169,4 +171,17 @@ class Tab // Reorder @TODO } + + public function reorderPage( + int $page_num + ): void + { + /* @TODO + $this->_page = array_splice( + $this->_page, + $page_num, + 0, + // @TODO get $page + ); */ + } } \ No newline at end of file