Method
GtkWidgetset_state_flags
since: 3.0
Declaration [src]
void
gtk_widget_set_state_flags (
GtkWidget* widget,
GtkStateFlags flags,
gboolean clear
)
Description [src]
This function is for use in widget implementations. Turns on flag values in the current widget state (insensitive, prelighted, etc.).
This function accepts the values GTK_STATE_FLAG_DIR_LTR and
GTK_STATE_FLAG_DIR_RTL but ignores them. If you want to set the widget’s
direction, use gtk_widget_set_direction().
It is worth mentioning that any other state than GTK_STATE_FLAG_INSENSITIVE,
will be propagated down to all non-internal children if widget is a
GtkContainer, while GTK_STATE_FLAG_INSENSITIVE itself will be propagated
down to all GtkContainer children by different means than turning on the
state flag down the hierarchy, both gtk_widget_get_state_flags() and
gtk_widget_is_sensitive() will make use of these.
Available since: 3.0
Parameters
flags-
Type:
GtkStateFlagsState flags to turn on.
clear-
Type:
gbooleanWhether to clear state before turning on
flags.