Browse Source

add navbar initiation

CPP-GTK4
yggverse 4 months ago
parent
commit
bc73c831c1
  1. 9
      src/app/browser/main/tab/data.cpp
  2. 9
      src/app/browser/main/tab/data.hpp

9
src/app/browser/main/tab/data.cpp

@ -1,9 +1,11 @@ @@ -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() @@ -11,6 +13,13 @@ Data::Data()
set_homogeneous(
true
);
// Init elements
navbar = new data::Navbar();
append(
* navbar
);
}
Data::~Data() = default;

9
src/app/browser/main/tab/data.hpp

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

Loading…
Cancel
Save