Re: [gtk-list] Scalr widget



Joachim Backes wrote:
> how to retrieve the current value of a scale widget without
> looking in the widget's internal structures (which is not
> recommended)?

Hi Joachim, you need to look at the scale's adjustment:

	gtk_range_get_adjustment( GTK_RANGE( myscale ) )->value

Alternatively, catch the value_changed signal from the adjustment when
you build the scale.

Hope this helps, 

John
--
John Cupitt, john.cupitt@ng-london.org.uk, +44 (0)171 747 2570
VASARI Lab, The National Gallery, Trafalgar Square, London, WC2N 5DN



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]