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.hpp"
#include "data/navbar.hpp"
using namespace app::browser::main::tab; using namespace app::browser::main::tab;
Data::Data() Data::Data()
{ {
// Init container
set_orientation( set_orientation(
Gtk::Orientation::VERTICAL Gtk::Orientation::VERTICAL
); );
@ -11,6 +13,13 @@ Data::Data()
set_homogeneous( set_homogeneous(
true true
); );
// Init elements
navbar = new data::Navbar();
append(
* navbar
);
} }
Data::~Data() = default; Data::~Data() = default;

View file

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