Re: Why the Timer doesn't work? (about g_timeout_add())



Look at this:

static void timer_1_test(gpointer data)

       g_timeout_add(1000, (GSourceFunc)timer_1_test, cw);

Then look at the documentation for GSourceFunc:
http://library.gnome.org/devel/glib/stable/glib-The-Main-Event-Loop.html#GSourceFunc
. Notice anything?

--tml



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