Browse Source

remove deprecated arguments

CPP-GTK4
yggverse 2 months ago
parent
commit
a1e63346ad
  1. 2
      src/app/browser/main.cpp
  2. 4
      src/app/browser/main/tab.cpp
  3. 2
      src/app/browser/main/tab.hpp
  4. 17
      src/app/browser/main/tab/page.cpp
  5. 2
      src/app/browser/main/tab/page.hpp

2
src/app/browser/main.cpp

@ -44,8 +44,6 @@ void Main::refresh()
void Main::tab_append() void Main::tab_append()
{ {
mainTab->append( mainTab->append(
_("New page"),
"", // @TODO
true true
); );
}; };

4
src/app/browser/main/tab.cpp

@ -49,13 +49,9 @@ void Tab::refresh(
} }
void Tab::append( void Tab::append(
const Glib::ustring & TITLE,
const Glib::ustring & SUBTITLE,
const bool & FOCUS const bool & FOCUS
) { ) {
auto tabPage = new tab::Page( auto tabPage = new tab::Page(
TITLE,
SUBTITLE,
action__tab_page_navigation_history_back, action__tab_page_navigation_history_back,
action__tab_page_navigation_history_forward, action__tab_page_navigation_history_forward,
action__tab_page_navigation_update action__tab_page_navigation_update

2
src/app/browser/main/tab.hpp

@ -53,8 +53,6 @@ namespace app::browser::main
); );
void append( void append(
const Glib::ustring & TITLE,
const Glib::ustring & SUBTITLE,
const bool & FOCUS const bool & FOCUS
); );

17
src/app/browser/main/tab/page.cpp

@ -5,17 +5,10 @@
using namespace app::browser::main::tab; using namespace app::browser::main::tab;
Page::Page( 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_BACK,
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD, const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD,
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_UPDATE const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_UPDATE
) { ) {
// Init container
set_orientation(
Gtk::Orientation::VERTICAL
);
// Init components // Init components
pageNavigation = Gtk::make_managed<page::Navigation>( pageNavigation = Gtk::make_managed<page::Navigation>(
ACTION__PAGE_NAVIGATION_HISTORY_BACK, ACTION__PAGE_NAVIGATION_HISTORY_BACK,
@ -33,11 +26,13 @@ Page::Page(
* pageContent * pageContent
); );
// Init extras // Init widget
set_orientation(
Gtk::Orientation::VERTICAL
);
refresh( refresh(
TITLE, _("New page"), "", 0
SUBTITLE,
0
); );
} }

2
src/app/browser/main/tab/page.hpp

@ -42,8 +42,6 @@ namespace app::browser::main::tab
public: public:
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_BACK,
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD, const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD,
const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_UPDATE const Glib::RefPtr<Gio::SimpleAction> & ACTION__PAGE_NAVIGATION_UPDATE

Loading…
Cancel
Save