<?xml version="1.0"?>
<page id="GimpUi.init"
      type="topic"
      style="function"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="function" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>void</api:type>
      </api:returns>
      <api:name>gimp_ui_init</api:name>
      <api:arg>
        <api:type>String</api:type>
        <api:name>prog_name</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.init</title>
  <synopsis><code mime="text/x-gjs">
function init(prog_name: String): void {
    // Gjs wrapper for gimp_ui_init()
}
  </code></synopsis>
  <p>This function initializes GTK+ with gtk_init().</p>  <p>It also sets up various other things so that the plug-in user looks
and behaves like the GIMP core. This includes selecting the GTK+
theme and setting up the help system as chosen in the GIMP
preferences. Any plug-in that provides a user interface should call
this function.</p>

<terms>
<item>
<title><code>prog_name</code></title>
  <p>The name of the plug-in which will be passed as argv[0] to
            gtk_init(). It's a convention to use the name of the
            executable and _not_ the PDB procedure name.</p>
</item>
</terms>

</page>
