Re: Why the Timer doesn't work? (about g_timeout_add())
- From: "Lazy Fox" <lazy fox wu gmail com>
- To: "Tor Lillqvist" <tml iki fi>
- Cc: gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: Re: Why the Timer doesn't work? (about g_timeout_add())
- Date: Thu, 21 Aug 2008 08:55:16 +0800
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]