Yoda/src/app/browser/header.cpp
2024-08-06 09:31:57 +03:00

41 lines
867 B
C++

#include "header.h"
namespace app
{
namespace browser
{
// Construct
Header::Header(
Browser *browser
) {
// Init dependencies
this->browser = browser;
// Init GTK
this->gtk = gtk_header_bar_new();
gtk_header_bar_set_show_title_buttons(
GTK_HEADER_BAR(
this->gtk
),
Header::SHOW_TITLE_BUTTONS
);
// Init title widget
gtk_header_bar_pack_start(
GTK_HEADER_BAR(
this->gtk
),
(new header::Bar(this))->gtk // @TODO
);
// Render
gtk_widget_show(
GTK_WIDGET(
this->gtk
)
);
}
}
}