add get_current_tab_label_text method

This commit is contained in:
yggverse 2024-08-20 16:27:35 +03:00
parent fe2cf74a42
commit 8e3730f61d
2 changed files with 17 additions and 3 deletions

View file

@ -27,6 +27,17 @@ Main::~Main()
delete tab;
}
// Getters
Glib::ustring Main::get_current_tab_label_text()
{
int page_number = tab->get_current_page();
return tab->get_label_text(
page_number
);
};
// Actions
void Main::tab_append()
{
tab->append(