Main.init

Call this function before using any other GTK+ functions in your GUI applications. It will initialize everything needed to operate the toolkit and parses some standard command line options. argc and argv are adjusted accordingly so your own code will never see those standard arguments. Since 2.18, GTK+ calls signal (SIGPIPE, SIG_IGN) during initialization, to ignore SIGPIPE signals, since these are almost never wanted in graphical applications. If you do need to handle SIGPIPE for some reason, reset the handler after gtk_init(), but notice that other libraries (e.g. libdbus or gvfs) might do similar things. Note

  1. void init(string[] args)
  2. void init(int* argc, char*** argv)
    class Main
    static
    void
    init
    (
    int* argc
    ,
    char*** argv
    )

Parameters

argc int*

Address of the argc parameter of your main() function. Changed if any arguments were handled. inout

argv char***

Address of the argv parameter of main(). Any options understood by GTK+ are stripped before return. [array length=argc]inout[allow-none]

Meta