pike.hubbe.net

[Top]
GTK
GTK.Dial
previousGTK.Dial()->get_value() GTK.Dial()->set_percentage()next

Method GTK.Dial()->set_adjustment()


Method set_adjustment

object(GTK.Dial) GTK.Dial()->set_adjustment(object(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.


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