mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
drop reorderable argument
This commit is contained in:
parent
65502c247d
commit
22d8d147e3
2 changed files with 3 additions and 10 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue