Re: Saving/Restoring



>2. Has anyone ever written the spin button alternative to work with double ins
>tead of float? I'd sell my soul for such a thing! (;

cd /usr/src/gtk+-1.2.8/gtk/

sed -e s/SpinButton/DblSpinButton/g' \
    -e s/spinbutton/dblspinbutton/g' \
    -e s/spin_button/dbl_spin_button/g' \
    -e 's/float/double/g' \
     < gtkspinbutton.c > gtkdblspinbutton.c

sed -e s/SpinButton/DblSpinButton/g' \
    -e s/spinbutton/dblspinbutton/g' \
    -e s/spin_button/dbl_spin_button/g' \
    -e 's/float/double/g' \
    < gtkspinbutton.h > gtkdblspinbutton.h

now add gtkdblspinbutton to Makefile.am, compile, fix minor problems.

your soul, i hope, is worth more than that.

--p




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