From a1e63346add150e769b1b542d7d5c5f6ce175086 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 8 Sep 2024 04:46:00 +0300 Subject: [PATCH] remove deprecated arguments --- src/app/browser/main.cpp | 2 -- src/app/browser/main/tab.cpp | 4 ---- src/app/browser/main/tab.hpp | 2 -- src/app/browser/main/tab/page.cpp | 17 ++++++----------- src/app/browser/main/tab/page.hpp | 2 -- 5 files changed, 6 insertions(+), 21 deletions(-) diff --git a/src/app/browser/main.cpp b/src/app/browser/main.cpp index 8586a43..ec9c63c 100644 --- a/src/app/browser/main.cpp +++ b/src/app/browser/main.cpp @@ -44,8 +44,6 @@ void Main::refresh() void Main::tab_append() { mainTab->append( - _("New page"), - "", // @TODO true ); }; diff --git a/src/app/browser/main/tab.cpp b/src/app/browser/main/tab.cpp index 26cca21..a227659 100644 --- a/src/app/browser/main/tab.cpp +++ b/src/app/browser/main/tab.cpp @@ -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 diff --git a/src/app/browser/main/tab.hpp b/src/app/browser/main/tab.hpp index 920e9e2..e80d908 100644 --- a/src/app/browser/main/tab.hpp +++ b/src/app/browser/main/tab.hpp @@ -53,8 +53,6 @@ namespace app::browser::main ); void append( - const Glib::ustring & TITLE, - const Glib::ustring & SUBTITLE, const bool & FOCUS ); diff --git a/src/app/browser/main/tab/page.cpp b/src/app/browser/main/tab/page.cpp index cead393..5d8ff70 100644 --- a/src/app/browser/main/tab/page.cpp +++ b/src/app/browser/main/tab/page.cpp @@ -5,17 +5,10 @@ using namespace app::browser::main::tab; Page::Page( - const Glib::ustring & TITLE, - const Glib::ustring & SUBTITLE, const Glib::RefPtr & ACTION__PAGE_NAVIGATION_HISTORY_BACK, const Glib::RefPtr & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD, const Glib::RefPtr & ACTION__PAGE_NAVIGATION_UPDATE ) { - // Init container - set_orientation( - Gtk::Orientation::VERTICAL - ); - // Init components pageNavigation = Gtk::make_managed( 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 ); } diff --git a/src/app/browser/main/tab/page.hpp b/src/app/browser/main/tab/page.hpp index af1114b..d4e2b9a 100644 --- a/src/app/browser/main/tab/page.hpp +++ b/src/app/browser/main/tab/page.hpp @@ -42,8 +42,6 @@ namespace app::browser::main::tab public: Page( - const Glib::ustring & TITLE, - const Glib::ustring & SUBTITLE, const Glib::RefPtr & ACTION__PAGE_NAVIGATION_HISTORY_BACK, const Glib::RefPtr & ACTION__PAGE_NAVIGATION_HISTORY_FORWARD, const Glib::RefPtr & ACTION__PAGE_NAVIGATION_UPDATE