mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add get_current_tab_label_text method
This commit is contained in:
parent
fe2cf74a42
commit
8e3730f61d
2 changed files with 17 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef APP_BROWSER_MAIN_HPP
|
||||
#define APP_BROWSER_MAIN_HPP
|
||||
|
||||
#include <glibmm/ustring.h>
|
||||
#include <gtkmm/box.h>
|
||||
|
||||
namespace app::browser
|
||||
|
|
@ -19,12 +20,14 @@ namespace app::browser
|
|||
Main();
|
||||
~Main();
|
||||
|
||||
Glib::ustring get_current_tab_label_text();
|
||||
|
||||
void tab_append();
|
||||
void tab_update();
|
||||
void tab_close();
|
||||
void tab_close_all();
|
||||
void tab_close_left();
|
||||
void tab_close_right();
|
||||
void tab_close_all();
|
||||
void tab_close();
|
||||
void tab_update();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue