connect


Description:

[ CCode ( cname = "gimp_int_combo_box_connect" ) ]
[ Version ( since = "2.2" ) ]
public ulong connect (int value, owned Callback callback)

A convenience function that sets the initial value of a 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 DrawableComboBox. If you pass an invalid initial value, the callback will be called with the default item active.

Parameters:

this

a IntComboBox

value

the value to set

callback

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

data

a pointer passed as data to connect

data_destroy

Destroy function for data.

Returns:

the signal handler ID as returned by connect