Method GTK2.Range()->set_update_policy()


Method set_update_policy

GTK2.Range set_update_policy(int when)

Description

The "update policy" of a range widget defines at what points during user interaction it will change the value field of its Adjustment and emit the "value_changed" signal on this Adjustment. The update policies are:

GTK2.UpdatePolicyContinuous

This is the default. The "value_changed" signal is emitted continuously, i.e., whenever the slider is moved by even the tiniest amount.

GTK2.UpdatePolicyDiscontinuous

The "value_changed" signal is only emitted once the slider has stopped moving and the user has released the mouse button.

GTK2.UpdatePolicyDelayed

The "value_changed" signal is emitted when the user releases the mouse button, or if the slider stops moving for a short period of time.