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 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 this is a Container , while gtk_state_flag_insensitive itself will be propagated down to all Container children by different means than turning on the state flag down the hierarchy, both get_state_flags and is_sensitive will make use of these.
this |
a Widget |
flags |
State flags to turn on |
clear |
Whether to clear state before turning on |