g_timeout_add / g_idle_remove.



 Folks,

 What is the argument to pass to g_idle_remove_by_data(gpointer data) ?

 I have the following:

  ...
     g_timeout_add(1000, time_func, aLabel);

  ....
  somewere on a button_clicked callback
  ...
     g_idel_remove_by_data(aLabel);
...

  This is obviously not working (i.e, the fuction keeps being called.) What
data should I pass ? ( I have looked on the source code gmain.c, but there is
no hint on what data to pass.)

  Thanks.Harring.

__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute



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