From a711b683cc4199460216b3da7571e2e4e82de2e2 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 27 Aug 2024 14:30:23 +0300 Subject: [PATCH] update class object namespace --- src/app/browser/main.cpp | 26 +++++++++++++------------- src/app/browser/main.hpp | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/app/browser/main.cpp b/src/app/browser/main.cpp index c435ae6a..15cb937a 100644 --- a/src/app/browser/main.cpp +++ b/src/app/browser/main.cpp @@ -15,24 +15,24 @@ Main::Main() ); // Init tabs - tab = new main::Tab(); + mainTab = new main::Tab(); append( - * tab + * mainTab ); } Main::~Main() { - delete tab; + delete mainTab; } // Getters Glib::ustring Main::get_current_tab_label_text() { - int page_number = tab->get_current_page(); + int page_number = mainTab->get_current_page(); - return tab->get_label_text( + return mainTab->get_label_text( page_number ); }; @@ -40,36 +40,36 @@ Glib::ustring Main::get_current_tab_label_text() // Actions void Main::tab_append() { - tab->append( + mainTab->append( _("New page") ); }; void Main::tab_update() { - tab->update( - tab->get_current_page() + mainTab->update( + mainTab->get_current_page() ); }; void Main::tab_close() { - tab->close( - tab->get_current_page() + mainTab->close( + mainTab->get_current_page() ); }; void Main::tab_close_left() { - tab->close_left(); + mainTab->close_left(); }; void Main::tab_close_right() { - tab->close_right(); + mainTab->close_right(); }; void Main::tab_close_all() { - tab->close_all(); + mainTab->close_all(); }; \ No newline at end of file diff --git a/src/app/browser/main.hpp b/src/app/browser/main.hpp index 4f7e2ed3..edd57846 100644 --- a/src/app/browser/main.hpp +++ b/src/app/browser/main.hpp @@ -14,7 +14,7 @@ namespace app::browser class Main : public Gtk::Box { - app::browser::main::Tab * tab; + main::Tab * mainTab; public: