Update Policies

The update policy of a Range widget defines at what points during user interaction it will change the value field of its Gtk::Adjustment and emit the value_changed signal. The update policies, set with the set_update_policy() method, are:

  • Gtk::UPDATE_CONTINUOUS - This is the default. The value_changed signal is emitted continuously, i.e. whenever the slider is moved by even the tiniest amount.
  • Gtk::UPDATE_DISCONTINUOUS - The value_changed signal is only emitted once the slider has stopped moving and the user has released the mouse button.
  • Gtk::UPDATE_DELAYED - 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.