mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement alternative update action api
This commit is contained in:
parent
6b6d3ad826
commit
cda76380e8
13 changed files with 142 additions and 2 deletions
|
|
@ -166,6 +166,37 @@ void Tab::update(
|
|||
);
|
||||
}
|
||||
|
||||
void Tab::update(
|
||||
const int & PAGE_NUMBER,
|
||||
const Glib::ustring & URI
|
||||
) {
|
||||
// Get tab page
|
||||
const auto TAB_PAGE = get_tabPage(
|
||||
PAGE_NUMBER
|
||||
);
|
||||
|
||||
// Update tab page component
|
||||
TAB_PAGE->update(
|
||||
URI
|
||||
);
|
||||
|
||||
// Update tab label component
|
||||
get_tabLabel(
|
||||
PAGE_NUMBER
|
||||
)->set_label(
|
||||
TAB_PAGE->get_title()
|
||||
);
|
||||
|
||||
// Update tab actions status
|
||||
action__tab_close_active->set_enabled(
|
||||
get_n_pages() > 0
|
||||
);
|
||||
|
||||
action__tab_close_all->set_enabled(
|
||||
get_n_pages() > 0
|
||||
);
|
||||
}
|
||||
|
||||
int Tab::append(
|
||||
const Glib::ustring & LABEL_TEXT,
|
||||
const bool & IS_CURRENT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue