From 22d8d147e38ffa805601315620fd6821867fd7d6 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 8 Oct 2024 00:59:42 +0300 Subject: [PATCH] drop reorderable argument --- src/app/browser/window/tab.rs | 3 +-- src/app/browser/window/tab/widget.rs | 10 ++-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index 108191a5..f399654c 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -107,7 +107,7 @@ impl Tab { // Append new Notebook page self.widget - .append(item.label(), item.page(), is_initially_current, true); + .append(item.label(), item.page(), item.is_initially_current()); if page_navigation_request_text.is_none() { item.page_navigation_request_grab_focus(); // @TODO @@ -229,7 +229,6 @@ impl Tab { item.label(), item.page(), item.is_initially_current(), - true, ); } } diff --git a/src/app/browser/window/tab/widget.rs b/src/app/browser/window/tab/widget.rs index 3c29d1f6..d7551445 100644 --- a/src/app/browser/window/tab/widget.rs +++ b/src/app/browser/window/tab/widget.rs @@ -13,18 +13,12 @@ impl Widget { } // Actions - pub fn append( - &self, - label: &Box, - page: &Box, - is_current_page: bool, - is_reorderable: bool, - ) -> u32 { + pub fn append(&self, label: &Box, page: &Box, is_current_page: bool) -> u32 { // Append new Notebook page let page_number = self.gobject.append_page(page, Some(label)); // Additional setup for Notebook tab created - self.gobject.set_tab_reorderable(page, is_reorderable); + self.gobject.set_tab_reorderable(page, true); if is_current_page { self.gobject.set_current_page(Some(page_number));