pike.hubbe.net

[Top]
GTK
GTK.Range
previousGTK.Range()->set_adjustment() GTK.Range()->slider_update()next

Method GTK.Range()->set_update_policy()


Method set_update_policy

object(GTK.Range) GTK.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:

GTK.UpdatePolicyContinuous

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

GTK.UpdatePolicyDiscontinuous

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

GTK.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.


Extracted from Pike v7.3 release 11 at 2001-11-03.