Re: [gtk-list] Re: Timer gives up
- From: Stephen Birch <sbirch ironmountainsystems com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Timer gives up
- Date: Mon, 23 Feb 1998 22:35:00 +0000
Owen,
1000 x thanks for such a swift reply.
Owen Taylor wrote:
> Stephen Birch <sbirch@ironmountainsystems.com> writes:
>
> > I'm not sure if I have misunderstood the purpose of the timer, but it
> > doesn't seem to keep calling my callback function. Oddly, if I put a
> > print statement inside the callback it seems to repeat just fine.
> >
> > Is there some fundamental item I have missed?
>
> Yes. ;-)
>
> gint gtk_timeout_add (guint32 interval,
> GtkFunction function,
> gpointer data);
>
> typedef gint (*GtkFunction) (gpointer data);
> ^^^^
>
> If your function returns true, then the timer will be reinstalled.
> If it returns false, it will only run once. If it returns 'void',
> then you may get strange results ... as you've noticed.
>
> Regards,
> Owen
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]