Re: [hv]scale doesn't quite work the way I thought it would...



    >> Also, can I get it to only display values as integers ("1" instead of
    >> "1.0")?

    Paul> this may do the trick:

    Paul> gtk_hscale_set_digits (GTK_SCALE(hsc), 0); 

Thanks, this did the trick.  In fact, it solves both problems.  It limits
the display of the number of digits after the decimal point and rounds the
value returned.  No need to fiddle with the value-changed signal at all.

-- 
Skip Montanaro (skip pobox com)
http://www.mojam.com/
http://www.musi-cal.com/




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