create a gtk window
include
int main(int argc, char *argv[]) { // Initialize GTK gtk_init(&argc, &argv);
// Create a new window
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
// Set the window title
gtk_window_set_title(GTK_WINDOW(window), "GTK Window");
// Set the window size
gtk_window_set_default_size(GTK_WINDOW(window), 400, 300);
// Connect the destroy signal to the gtk_main_quit function
g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
// Show the window
gtk_widget_show(window);
// Run the main GTK loop
gtk_main();
// Return 0 to indicate successful execution
return 0;
}