# GimpUi.ColorProfileComboBox.new

    function new(dialog: Gtk.Widget, history: Gio.File): Gtk.Widget {
        // Gjs wrapper for gimp_color_profile_combo_box_new()
    }

Create a combo-box widget for selecting color profiles. The combo-box is populated from the file specified as history. This filename is typically created using the following code snippet: <informalexample><programlisting> gchar *history = gimp_personal_rc_file ("profilerc"); </programlisting></informalexample>

The recommended dialog type to use is a GimpUi.ColorProfileChooserDialog. If a GimpUi.ColorProfileChooserDialog is passed, GimpUi.ColorProfileComboBox will take complete control over the dialog, which means connecting a GtkDialog::response() callback by itself, and take care of destroying the dialog when the combo box is destroyed.

If another type of dialog is passed, this has to be implemented separately.

See also GimpUi.ColorProfileComboBox.new_with_model.

Since 2.4

dialog

  a Gtk.Dialog to present when the user selects the "Select color profile from disk..." item

history

  Gio.File of the profilerc (or null for no history)

Returns

  a new GimpUi.ColorProfileComboBox.