From 0f679d0e797e69e597e0e8ef95349fd27ec3d650 Mon Sep 17 00:00:00 2001 From: yggverse Date: Wed, 14 Aug 2024 11:30:05 +0300 Subject: [PATCH] append content container --- src/app/browser/main/tab/data.cpp | 13 ++++++++++--- src/app/browser/main/tab/data.hpp | 6 ++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/app/browser/main/tab/data.cpp b/src/app/browser/main/tab/data.cpp index 0af742e3..2564d1c8 100644 --- a/src/app/browser/main/tab/data.cpp +++ b/src/app/browser/main/tab/data.cpp @@ -1,5 +1,6 @@ #include "data.hpp" #include "data/navbar.hpp" +#include "data/content.hpp" using namespace app::browser::main::tab; @@ -13,9 +14,15 @@ Data::Data() // Init components navbar = new data::Navbar(); - append( - * navbar - ); + append( + * navbar + ); + + content = new data::Content(); + + append( + * content + ); // Init actions group action_group = Gio::SimpleActionGroup::create(); diff --git a/src/app/browser/main/tab/data.hpp b/src/app/browser/main/tab/data.hpp index 4726e317..1624cdca 100644 --- a/src/app/browser/main/tab/data.hpp +++ b/src/app/browser/main/tab/data.hpp @@ -1,8 +1,9 @@ #ifndef APP_BROWSER_MAIN_TAB_DATA_HPP #define APP_BROWSER_MAIN_TAB_DATA_HPP -#include #include +#include +#include #include namespace app::browser::main::tab @@ -10,6 +11,7 @@ namespace app::browser::main::tab namespace data { class Navbar; + class Content; } class Data : public Gtk::Box @@ -19,11 +21,11 @@ namespace app::browser::main::tab Glib::RefPtr action_group; data::Navbar * navbar; + data::Content * content; public: Data(); - ~Data(); void update();