# GimpUi.IntComboBox.prototype.connect

    function connect(value: Number(gint), callback: GObject.Callback): Number(gulong) {
        // Gjs wrapper for gimp_int_combo_box_connect()
    }

A convenience function that sets the initial value of a GimpUi.IntComboBox and connects callback to the "changed" signal.

This function also calls the callback once after setting the initial value. This is often convenient when working with combo boxes that select a default active item, like for example GimpUi.DrawableComboBox.new. If you pass an invalid initial value, the callback will be called with the default item active.

Since 2.2

value

  the value to set

callback

  a callback to connect to the combo_box's "changed" signal

Returns

  the signal handler ID as returned by g_signal_connect()