/******************************************************************************/ /* */ /* E coli by David S. Goodsell (2009) */ /* --- */ /* Let this freeze frame guide us towards the model */ /* that alone can account for the phenomenon ! */ /* */ /******************************************************************************/ #include "hot.h" #include "callback.h" int main (int argc, char **argv) { GtkApplication *app; int status; app = gtk_application_new ("org.gtk.example", G_APPLICATION_DEFAULT_FLAGS); g_signal_connect (app, "activate", G_CALLBACK (activate), NULL); status = g_application_run (G_APPLICATION (app), argc, argv); g_object_unref (app); return status; } /* https://docs.gtk.org/gtk4/class.ApplicationWindow.html GtkApplication *app = gtk_application_new ("org.gtk.test", 0); GtkBuilder *builder = gtk_builder_new_from_string ( "" " " " " " _Edit" " " " _Copy" " win.copy" " " " " " _Paste" " win.paste" " " " " " " "", -1); GMenuModel *menubar = G_MENU_MODEL (gtk_builder_get_object (builder, "menubar")); gtk_application_set_menubar (GTK_APPLICATION (app), menubar); g_object_unref (builder); // ... GtkWidget *window = gtk_application_window_new (app); */