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



At last, I found it.
Thanks.


On 8/20/08, Tor Lillqvist <tml iki fi> wrote:
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]