StyleContext.notifyStateChange

Warning gtk_style_context_notify_state_change has been deprecated since version 3.6 and should not be used in newly-written code. This function does nothing. Notifies a state change on context, so if the current style makes use of transition animations, one will be started so all rendered elements under region_id are animated for state state being set to value state_value. The window parameter is used in order to invalidate the rendered area as the animation runs, so make sure it is the same window that is being rendered on by the gtk_render_*() functions. If region_id is NULL, all rendered elements using context will be affected by this state transition. As a practical example, a GtkButton notifying a state transition on

class StyleContext
void
notifyStateChange

Parameters

window Window

a GdkWindow

regionId void*

animatable region to notify on, or NULL. See gtk_style_context_push_animatable_region(). [allow-none]

state GtkStateType

state to trigger transition for

stateValue int

TRUE if state is the state we are changing to, FALSE if we are changing away from it Since 3.0

Meta