mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement main menu popover (container)
This commit is contained in:
parent
7b8b3b860c
commit
5075798b0e
5 changed files with 90 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue