mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
switch to gtkmm
This commit is contained in:
parent
058aabce26
commit
d3e894e0ac
28 changed files with 50 additions and 1413 deletions
|
|
@ -1,56 +0,0 @@
|
|||
#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 menu element
|
||||
this->menu = new header::Menu(
|
||||
this
|
||||
);
|
||||
|
||||
gtk_header_bar_pack_start(
|
||||
GTK_HEADER_BAR(
|
||||
this->gtk
|
||||
),
|
||||
this->menu->gtk
|
||||
);
|
||||
|
||||
// Init new tab element
|
||||
this->tab = new header::Tab(
|
||||
this
|
||||
);
|
||||
|
||||
gtk_header_bar_pack_start(
|
||||
GTK_HEADER_BAR(
|
||||
this->gtk
|
||||
),
|
||||
this->tab->gtk
|
||||
);
|
||||
|
||||
// Render
|
||||
gtk_widget_show(
|
||||
GTK_WIDGET(
|
||||
this->gtk
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue