mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
update header bar menu namespace
This commit is contained in:
parent
0d624d3db7
commit
7b8b3b860c
7 changed files with 71 additions and 77 deletions
18
src/app/browser/header/bar/menu.cpp
Normal file
18
src/app/browser/header/bar/menu.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "menu.h"
|
||||
|
||||
namespace app::browser::header::bar
|
||||
{
|
||||
// Construct
|
||||
Menu::Menu(
|
||||
Bar *bar
|
||||
) {
|
||||
// Init GTK
|
||||
this->gtk = gtk_menu_button_new();
|
||||
|
||||
gtk_widget_show(
|
||||
GTK_WIDGET(
|
||||
this->gtk
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
25
src/app/browser/header/bar/menu.h
Normal file
25
src/app/browser/header/bar/menu.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef APP_BROWSER_HEADER_BAR_MENU_H
|
||||
#define APP_BROWSER_HEADER_BAR_MENU_H
|
||||
|
||||
#include "../bar.h"
|
||||
|
||||
namespace app::browser::header
|
||||
{
|
||||
class Bar;
|
||||
|
||||
namespace bar
|
||||
{
|
||||
class Menu
|
||||
{
|
||||
public:
|
||||
|
||||
GtkWidget *gtk;
|
||||
|
||||
Menu(
|
||||
Bar *bar
|
||||
);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue