Update gtk118

This commit is contained in:
daleclack 2021-11-22 21:35:45 +08:00
parent 48768c4fcb
commit 7a306a6306
2 changed files with 2 additions and 1 deletions

View File

@ -62,4 +62,4 @@ static void my_window_class_init(MyWindowClass * klass){}
MyWindow * my_window_new(GtkApplication * application){
return (MyWindow*)g_object_new(my_window_get_type(),"application",application,NULL);
}
}

View File

@ -1,6 +1,7 @@
#include "MyWindow.h"
static void gtkmain(GtkApplication * app,gpointer user_data){
//Create a window and show
MyWindow * window = my_window_new(app);
gtk_widget_show(GTK_WIDGET(window));
}