mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add get_progress_fraction method, remove action extra call
This commit is contained in:
parent
b67b9561fb
commit
2c792d9773
2 changed files with 9 additions and 6 deletions
|
|
@ -125,19 +125,16 @@ void Page::update(
|
||||||
const Glib::ustring & DESCRIPTION,
|
const Glib::ustring & DESCRIPTION,
|
||||||
const double & PROGRESS_FRACTION
|
const double & PROGRESS_FRACTION
|
||||||
) {
|
) {
|
||||||
// Refresh page data
|
// Update page data
|
||||||
mime = MIME;
|
mime = MIME;
|
||||||
title = TITLE;
|
title = TITLE;
|
||||||
description = DESCRIPTION;
|
description = DESCRIPTION;
|
||||||
progress_fraction = PROGRESS_FRACTION;
|
progress_fraction = PROGRESS_FRACTION;
|
||||||
|
|
||||||
// Refresh children components
|
// Update children components
|
||||||
pageNavigation->update(
|
pageNavigation->update(
|
||||||
progress_fraction
|
progress_fraction
|
||||||
);
|
);
|
||||||
|
|
||||||
// Refresh parent window
|
|
||||||
action__refresh->activate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Page::navigation_update(
|
void Page::navigation_update(
|
||||||
|
|
@ -389,6 +386,11 @@ Glib::ustring Page::get_description()
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double Page::get_progress_fraction()
|
||||||
|
{
|
||||||
|
return progress_fraction;
|
||||||
|
}
|
||||||
|
|
||||||
Glib::ustring Page::get_navigation_request_text()
|
Glib::ustring Page::get_navigation_request_text()
|
||||||
{
|
{
|
||||||
return pageNavigation->get_request_text();
|
return pageNavigation->get_request_text();
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,7 @@ namespace app::browser::main::tab
|
||||||
MIME get_mime();
|
MIME get_mime();
|
||||||
Glib::ustring get_title();
|
Glib::ustring get_title();
|
||||||
Glib::ustring get_description();
|
Glib::ustring get_description();
|
||||||
|
double get_progress_fraction();
|
||||||
|
|
||||||
Glib::ustring get_navigation_request_text();
|
Glib::ustring get_navigation_request_text();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue