From bc73c831c1b27103c0b7ab13b61462b6efeb64a5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 13 Aug 2024 08:48:17 +0300 Subject: [PATCH] add navbar initiation --- src/app/browser/main/tab/data.cpp | 9 +++++++++ src/app/browser/main/tab/data.hpp | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/app/browser/main/tab/data.cpp b/src/app/browser/main/tab/data.cpp index 4d004b4c..7893dd2e 100644 --- a/src/app/browser/main/tab/data.cpp +++ b/src/app/browser/main/tab/data.cpp @@ -1,9 +1,11 @@ #include "data.hpp" +#include "data/navbar.hpp" using namespace app::browser::main::tab; Data::Data() { + // Init container set_orientation( Gtk::Orientation::VERTICAL ); @@ -11,6 +13,13 @@ Data::Data() set_homogeneous( true ); + + // Init elements + navbar = new data::Navbar(); + + append( + * navbar + ); } Data::~Data() = default; diff --git a/src/app/browser/main/tab/data.hpp b/src/app/browser/main/tab/data.hpp index 55a56caf..c8a06e3f 100644 --- a/src/app/browser/main/tab/data.hpp +++ b/src/app/browser/main/tab/data.hpp @@ -5,8 +5,17 @@ namespace app::browser::main::tab { + namespace data + { + class Navbar; + } + class Data : public Gtk::Box { + private: + + data::Navbar * navbar; + public: Data();