Right track, wrong solution. :) Try just putting a return 1 at the end of your function, ecore timer's stop if 0 is returned, the printf causes a non-zero value to be on the stack, so the unspecified return value is positive, apparently w/o that it is 0.
On Tue, Oct 21, 2003 at 07:54:43PM -0700, Ryan wrote: > Your change_angle function is declared to return an int, and although I > dont have the evas source in front of me right now, I dont think > evas_object_gradient_angle_set() returns and int. However, printf does > (int printf(const char *format, arg1, arg2, arg3, ......); ). When you > take the printf call out, nothings being returned... Try changing your > function to void, or returning a success code instead of printf if you > want..? > > Ryan > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of Stafford Horne > > Sent: Tuesday, October 21, 2003 9:01 AM > > To: [EMAIL PROTECTED] > > Subject: [E-devel] Evas Gradient > > > > > > Hi, > > I was trying to make a gradient spin when I came across > > this little problem. > > > > ok so here is what happens. > > I set up my GLOBAL gradient, and then the timer like this: > > > > ecore_timer_add(0.1, change_angle, NULL); > > > > I have a global angle i and then do this: > > > > int change_angle(void* data) > > { > > evas_object_gradient_angle_set(grad, ++i); > > printf("i = %d\n", i); > > } > > > > OK, this is all great. the gradient will rotate. BUT, > > if I take out the printf statement I get no rotation. I am > > guessing its my fault, but I can not pin it down. > > > > all code can be located at: http://www.hornecomputing.com/egrad/ > > > > Stafford > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by OSDN developer relations > > Here's your chance to show off your extensive product knowledge > > We want to know what you know. Tell us and you have a chance > > to win $100 > > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > > _______________________________________________ > > enlightenment-devel mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > enlightenment-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ------------------------------------------------------------------------ | Nathan Ingersoll \\ Computer Systems & Network Coordinator | | [EMAIL PROTECTED] \\ http://www.ruralcenter.org | | http://ningerso.atmos.org/ \\ Minnesota Center for Rural Health | ------------------------------------------------------------------------
signature.asc
Description: Digital signature
