switch to gtkmm

This commit is contained in:
yggverse 2024-08-08 12:44:27 +03:00
parent 058aabce26
commit d3e894e0ac
28 changed files with 50 additions and 1413 deletions

View file

@ -1,44 +0,0 @@
#include "menu.h"
namespace app::browser::header
{
// Construct
Menu::Menu(
Header *header
) {
// Init dependencies
this->header = header;
// Init GTK
this->gtk = gtk_menu_button_new();
gtk_widget_set_tooltip_text(
GTK_WIDGET(
this->gtk
),
Menu::TOOLTIP
);
// Init requirements
this->main = new menu::Main(
this
);
// Init main popover
gtk_menu_button_set_popover(
GTK_MENU_BUTTON(
this->gtk
),
GTK_WIDGET(
this->main->gtk
)
);
// Render
gtk_widget_show(
GTK_WIDGET(
this->gtk
)
);
}
}