gimpui

## gimpui gimpui — Common user interface functions. This header includes all other GIMP User Interface Library headers. |

## Synopsis

    void        gimp_ui_init                    (const gchar *prog_name,
                                                 gboolean preview);

## Description

Common user interface functions. This header includes all other GIMP User Interface Library headers.

## Details

### gimp_ui_init ()

    void        gimp_ui_init                    (const gchar *prog_name,
                                                 gboolean preview);

This function initializes GTK+ with `gtk_init()` and initializes GDK's image rendering subsystem (GdkRGB) to follow the GIMP main program's colormap allocation/installation policy.

The GIMP's colormap policy can be determinded by the user with the gimprc variables `min_colors` and `install_cmap`.

`prog_name` : | 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 or something.
`preview` : | This parameter is unused and exists for historical reasons only.

## See Also

`gtk_init()`, `gdk_set_use_xshm()`, `gdk_rgb_set_min_colors()`, `gdk_rgb_set_install()`, `gdk_rgb_get_visual()`, `gdk_rgb_get_cmap()`, `gtk_widget_set_default_visual()`, `gtk_widget_set_default_colormap()`, `gtk_preview_set_gamma()`.