14 lines
448 B
C++
14 lines
448 B
C++
|
#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);
|
||
|
}
|