Re: Button press



>Thank you.
>I was just thinking what would be the best way of action. 
>Have the function registered on a button pressed event, and removed on a butto
>n realeased event?
>or have a gtlobal static variable set to TRUE, and the function registered on 
>a button press, and have the button release set the var to FALSE? (that variab
>le would be the return fariable.
>I guess the firstone is better (more secure and less error prone), but would l
>ike to hear some advices.

globals are always a bad idea.

look at the code in gtkspinbutton.c

--p



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