2020-12-19 15:46:03 +08:00
|
|
|
#include "winclass.h"
|
|
|
|
#include "GtkClass.h"
|
|
|
|
|
|
|
|
void GtkMain::init(GtkApplication *app){
|
|
|
|
GtkWin window;
|
|
|
|
Winheader header;
|
2020-12-19 17:56:43 +08:00
|
|
|
Winlayout layout;
|
|
|
|
|
2020-12-19 15:46:03 +08:00
|
|
|
window.main_window=gtk_application_window_new(app);
|
|
|
|
window.win_init(400,300);
|
|
|
|
|
|
|
|
header.header_init();
|
|
|
|
window.set_titlebar(header.header);
|
|
|
|
|
2020-12-19 17:56:43 +08:00
|
|
|
window.add_widget(layout.layout);
|
2020-12-19 15:46:03 +08:00
|
|
|
window.show_all();
|
|
|
|
};
|