Browse Source

add navbar initiation

CPP-GTK4
yggverse 3 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 @@
#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;

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

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

Loading…
Cancel
Save