mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-16 01:29:57 +00:00
41 lines
867 B
C++
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
|
|
)
|
|
);
|
|
}
|
|
}
|
|
}
|