add tab reorderable, focus methods

This commit is contained in:
yggverse 2024-08-12 16:12:36 +03:00
parent 20766c00f6
commit 530991a48e
2 changed files with 24 additions and 3 deletions

View file

@ -17,8 +17,26 @@ void Tab::append(
bool open,
bool focus
) {
append_page( // @TODO
* new Gtk::Label("data"),
* new Gtk::Label("tab")
Gtk::Label * data = new Gtk::Label("data"); // @TODO
append_page(
* data,
* new Gtk::Label(
LABEL
)
);
set_tab_reorderable(
* data,
REORDERABLE
);
if (focus)
{
set_current_page(
page_num(
* data
)
);
}
};