mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-12 13:41:34 +00:00
remove deprecated arguments
This commit is contained in:
parent
55f1680f8b
commit
a1e63346ad
@ -44,8 +44,6 @@ void Main::refresh()
|
||||
void Main::tab_append()
|
||||
{
|
||||
mainTab->append(
|
||||
_("New page"),
|
||||
"", // @TODO
|
||||
true
|
||||
);
|
||||
};
|
||||
|
@ -49,13 +49,9 @@ void Tab::refresh(
|
||||
}
|
||||
|
||||
void Tab::append(
|
||||
const Glib::ustring & TITLE,
|
||||
const Glib::ustring & SUBTITLE,
|
||||
const bool & FOCUS
|
||||
) {
|
||||
auto tabPage = new tab::Page(
|
||||
TITLE,
|
||||
SUBTITLE,
|
||||
action__tab_page_navigation_history_back,
|
||||
action__tab_page_navigation_history_forward,
|
||||
action__tab_page_navigation_update
|
||||
|
@ -53,8 +53,6 @@ namespace app::browser::main
|
||||
);
|
||||
|
||||
void append(
|
||||
const Glib::ustring & TITLE,
|
||||
const Glib::ustring & SUBTITLE,
|
||||
const bool & FOCUS
|
||||
);
|
||||
|
||||
|
@ -5,17 +5,10 @@
|
||||
using namespace app::browser::main::tab;
|
||||
|
||||
Page::Page(
|
||||
const Glib::ustring & TITLE,
|
||||
const Glib::ustring & SUBTITLE,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_BACK,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_UPDATE
|
||||
) {
|
||||
// Init container
|
||||
set_orientation(
|
||||
Gtk::Orientation::VERTICAL
|
||||
);
|
||||
|
||||
// Init components
|
||||
pageNavigation = Gtk::make_managed<page::Navigation>(
|
||||
ACTION__PAGE_NAVIGATION_HISTORY_BACK,
|
||||
@ -33,11 +26,13 @@ Page::Page(
|
||||
* pageContent
|
||||
);
|
||||
|
||||
// Init extras
|
||||
// Init widget
|
||||
set_orientation(
|
||||
Gtk::Orientation::VERTICAL
|
||||
);
|
||||
|
||||
refresh(
|
||||
TITLE,
|
||||
SUBTITLE,
|
||||
0
|
||||
_("New page"), "", 0
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -42,8 +42,6 @@ namespace app::browser::main::tab
|
||||
public:
|
||||
|
||||
Page(
|
||||
const Glib::ustring & TITLE,
|
||||
const Glib::ustring & SUBTITLE,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_BACK,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_UPDATE
|
||||
|
Loading…
x
Reference in New Issue
Block a user