Re: [gtk-list] Re: Timers and queries..



Thanks for such a fast reply... I can't find any documentation on this
function other than just the prototype so I am not sure how it works in
the first place. :)

On Tue, 12 Oct 1999, Mark Volpe wrote:

> You need to return FALSE from the timer function to keep
> it going and TRUE to stop it. ( Or maybe it's the other way around -
> check the docs. ) But anyway, you seem to have a _bare_ return
> statement in a function that returns gint, so anything is
> liable to happen! Compiling with -Wall would've caught
> that, too; make it a permanent fixture in your Makefile! ;-)
> 
> Mark
> 
> 
> "Sean Cody (TDR-X)" wrote:
> > 
> > I need to execute a call every so often so I though I would add a timeout.
> > When I run my program under a solaris box it only executes the timer
> > function once then just waits.  Though under a win32 box (using gtk+ port)
> > it calls the timer function repeatadly as it should...  Is there something
> > I am doing wrong in terms of the solaris usage? (This is using the same
> > code for both platformss)..
> > 
> > gint tick(gpointer data) {
> >  printf("Tock\n");
> >  return;
> > }
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Sean Cody (a.k.a. NullStream formerly TDR-X)
Email: umcodysw@cc.umanitoba.ca  (School)
        seanc@pangea.ca           ( Work )
        tdr@fuzzyskuzzy.dhs.org   ( Home )
WWW: http://home.cc.umanitoba.ca/~umcodysw
        http://fuzzyskuzzy.dhs.org
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



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