add navbar initiation

This commit is contained in:
yggverse 2024-08-13 08:48:17 +03:00
parent 940c98f3c6
commit bc73c831c1
2 changed files with 18 additions and 0 deletions

View File

@ -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;

View File

@ -5,8 +5,17 @@
namespace app::browser::main::tab
{
namespace data
{
class Navbar;
}
class Data : public Gtk::Box
{
private:
data::Navbar * navbar;
public:
Data();