mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update namespace model
This commit is contained in:
parent
521d372b40
commit
47bd3b5b8b
10 changed files with 116 additions and 81 deletions
43
src/app/browser.cpp
Normal file
43
src/app/browser.cpp
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#include "browser.h"
|
||||
|
||||
namespace app
|
||||
{
|
||||
// Construct
|
||||
Browser::Browser(
|
||||
GtkApplication *application
|
||||
) {
|
||||
// Init GTK
|
||||
this->gtk = gtk_application_window_new(
|
||||
GTK_APPLICATION(
|
||||
application
|
||||
)
|
||||
);
|
||||
|
||||
gtk_window_set_default_size(
|
||||
GTK_WINDOW(
|
||||
this->gtk
|
||||
),
|
||||
Browser::WIDTH,
|
||||
Browser::HEIGHT
|
||||
);
|
||||
|
||||
// Init requirements
|
||||
this->header = new browser::Header(
|
||||
this
|
||||
);
|
||||
|
||||
gtk_window_set_titlebar(
|
||||
GTK_WINDOW(
|
||||
this->gtk
|
||||
),
|
||||
this->header->gtk
|
||||
);
|
||||
|
||||
// Render
|
||||
gtk_widget_show(
|
||||
GTK_WIDGET(
|
||||
this->gtk
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue