mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
55 lines
786 B
C++
55 lines
786 B
C++
#include "navbar.hpp"
|
|
#include "navbar/base.hpp"
|
|
#include "navbar/history.hpp"
|
|
#include "navbar/update.hpp"
|
|
|
|
using namespace app::browser::main::tab::data;
|
|
|
|
Navbar::Navbar()
|
|
{
|
|
// Init container
|
|
set_orientation(
|
|
Gtk::Orientation::HORIZONTAL
|
|
);
|
|
|
|
set_spacing(
|
|
SPACING
|
|
);
|
|
|
|
set_margin_top(
|
|
MARGIN
|
|
);
|
|
|
|
set_margin_start(
|
|
MARGIN
|
|
);
|
|
|
|
set_margin_end(
|
|
MARGIN
|
|
);
|
|
|
|
set_margin_bottom(
|
|
MARGIN
|
|
);
|
|
|
|
// Init elements
|
|
base = new navbar::Base();
|
|
|
|
append(
|
|
* base
|
|
);
|
|
|
|
history = new navbar::History();
|
|
|
|
append(
|
|
* history
|
|
);
|
|
|
|
update = new navbar::Update();
|
|
|
|
append(
|
|
* update
|
|
);
|
|
}
|
|
|
|
Navbar::~Navbar() = default;
|