How to keep the check button' checked state



Hello ,everyone

        i have a check button

        i want to manage  the check button's check state  using  source code
      and  i want no matter how the user click  the check button ,
     the check button  keeps its state

      i connected to the check button's  clicked signal,and activate singal
    and the call back function like this:

       gboolean  callback()
     {
                return TRUE;
     }

   but this   does not work

   if i clicked on the check button,the state switched

     How can i  achieve   my original goal ?
Any comments would be much appreciaed, thanks in advance !



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