implement main menu popover (container)

This commit is contained in:
yggverse 2024-08-05 19:08:38 +03:00
parent 7b8b3b860c
commit 5075798b0e
5 changed files with 90 additions and 1 deletions

View file

@ -6,9 +6,28 @@ namespace app::browser::header::bar
Menu::Menu(
Bar *bar
) {
// Init dependencies
this->bar = bar;
// Init GTK
this->gtk = gtk_menu_button_new();
// 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