Native UI
This commit is contained in:
parent
2df26b8ce0
commit
bf75b8b652
23 changed files with 841 additions and 5 deletions
22
native/src/ls-application-window.c
Normal file
22
native/src/ls-application-window.c
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#include "config.h"
|
||||
|
||||
#include "ls-application-window.h"
|
||||
#include "ls-web-view.h"
|
||||
|
||||
struct _LSApplicationWindow {
|
||||
GtkApplicationWindow parent_instance;
|
||||
};
|
||||
|
||||
G_DEFINE_FINAL_TYPE(LSApplicationWindow, ls_application_window, GTK_TYPE_APPLICATION_WINDOW)
|
||||
|
||||
static void ls_application_window_class_init(LSApplicationWindowClass *klass) {
|
||||
g_type_ensure(LS_TYPE_WEB_VIEW);
|
||||
|
||||
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass);
|
||||
|
||||
gtk_widget_class_set_template_from_resource(widget_class, "/space/arimelody/LiveSchedule/application-window.ui");
|
||||
}
|
||||
|
||||
static void ls_application_window_init(LSApplicationWindow *self) {
|
||||
gtk_widget_init_template(GTK_WIDGET(self));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue