testing-repository/Gtk3/vscode-gtk-test/main.cpp

14 lines
448 B
C++
Raw Normal View History

2021-01-10 14:51:17 +08:00
#include <gtk/gtk.h>
static void gtkmain(GtkApplication *app,gpointer user_data){
GtkWidget *window;
window=gtk_application_window_new(app);
gtk_widget_show_all(window);
}
int main(int argc,char *argv[]){
GtkApplication *app;
app=gtk_application_new("com.github.vscode.test",G_APPLICATION_FLAGS_NONE);
g_signal_connect(app,"activate",G_CALLBACK(gtkmain),NULL);
return g_application_run(G_APPLICATION(app),argc,argv);
}