mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
update header refresh api
This commit is contained in:
parent
e1327cc0d5
commit
ec1864a858
3 changed files with 14 additions and 19 deletions
|
|
@ -15,11 +15,8 @@ Browser::Browser(
|
||||||
{
|
{
|
||||||
browserMain->refresh();
|
browserMain->refresh();
|
||||||
|
|
||||||
browserHeader->set_title(
|
browserHeader->refresh(
|
||||||
browserMain->get_current_tab_page_title()
|
browserMain->get_current_tab_page_title(),
|
||||||
);
|
|
||||||
|
|
||||||
browserHeader->set_subtitle(
|
|
||||||
browserMain->get_current_tab_page_subtitle()
|
browserMain->get_current_tab_page_subtitle()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -92,6 +89,10 @@ Browser::Browser(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
ACTION__MAIN_TAB_PAGE_NAVIGATION_UPDATE->set_enabled(
|
||||||
|
false
|
||||||
|
);
|
||||||
|
|
||||||
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK = add_action(
|
const auto ACTION__MAIN_TAB_PAGE_NAVIGATION_HISTORY_BACK = add_action(
|
||||||
"main_tab_page_navigation_history_back",
|
"main_tab_page_navigation_history_back",
|
||||||
[this]
|
[this]
|
||||||
|
|
|
||||||
|
|
@ -34,18 +34,15 @@ Header::Header()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Header::set_title(
|
void Header::refresh(
|
||||||
const Glib::ustring & VALUE
|
const Glib::ustring & TITLE,
|
||||||
|
const Glib::ustring & SUBTITLE
|
||||||
) {
|
) {
|
||||||
headerMain->set_title(
|
headerMain->set_title(
|
||||||
VALUE
|
TITLE
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
void Header::set_subtitle(
|
|
||||||
const Glib::ustring & VALUE
|
|
||||||
) {
|
|
||||||
headerMain->set_subtitle(
|
headerMain->set_subtitle(
|
||||||
VALUE
|
SUBTITLE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -28,12 +28,9 @@ namespace app::browser
|
||||||
|
|
||||||
Header();
|
Header();
|
||||||
|
|
||||||
void set_title(
|
void refresh(
|
||||||
const Glib::ustring & VALUE
|
const Glib::ustring & TITLE,
|
||||||
);
|
const Glib::ustring & SUBTITLE
|
||||||
|
|
||||||
void set_subtitle(
|
|
||||||
const Glib::ustring & VALUE
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue