Ocgtk_gtk.GMainMain event loop and initialization for GTK4
Initialize GTK.
This must be called before using any GTK functions. Returns the remaining command-line arguments after GTK processes its options.
Example:
let () =
let _ = GMain.init () in
(* ... create widgets ... *)
GMain.main ()Start the GTK main event loop. This function blocks until quit is called.
Exit the main event loop. Typically called from a signal handler or callback.
Note: For new GTK4 applications, GtkApplication is preferred over the main loop functions. However, these are provided for:
Full GtkApplication support is planned for a future release.