GtkWidget::set_state

void set_state( GtkStateType state );

Sets the initial GtkStateType for the calling widget. Note that this will be overridden when the user interacts with the widget, and is primarily useful for offering visual cues.

A widget's current state can be queried using the state property.

See also: GtkStyle.