| Extracted from Pike v7.8 release 700 at 2013-06-08.

[Top]
GTK
GTK.Range

# Method GTK.Range()->set_adjustment()

Method set_adjustment

  `GTK.Range set_adjustment(GTK.Adjustment pos)`

Description

  set_adjustment() does absolutely nothing if you pass it the adjustment that range is already using, regardless of whether you changed any of its fields or not. If you pass it a new Adjustment, it will unreference the old one if it exists (possibly destroying it), connect the appropriate signals to the new one, and call the private function gtk_range_adjustment_changed(), which will (or at least, is supposed to...) recalculate the size and/or position of the slider and redraw if necessary.