# Module GMain.Main

    module Main: sig .. end

(gtkdoc: gtk gtk-General)

    val init : ?setlocale:bool -> unit -> string

`init` also sets the locale and returns its name. Either set `~setlocale` to `false` or GTK_SETLOCALE to "0" if you don't want to the locale to be set

    val main : unit -> unit

`main` runs the main loop, until `quit` is called. Do not use in multi-threaded programs.

    val quit : unit -> unit

quit the main loop

    val version : int * int * int

`major, minor, micro`