Re: [Vala] Setting up a timer with callback event



Just curious, I'm new to vala, what, in your example, is the purpose of
this line?

       //This should activate the timer.
-----> [CCode (instance_pos = -1)]
       public void on_btnActivate_clicked (Button source) {
              timerID = Timeout.add (1000, on_timer_event);
       }


Thanks





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