Remove throbber callback from schedule before scheduling a new one.
svn path=/trunk/netsurf/; revision=13272
This commit is contained in:
parent
41ef599293
commit
e95b45725c
11
atari/gui.c
11
atari/gui.c
|
@ -488,12 +488,14 @@ void gui_window_start_throbber(struct gui_window *w)
|
|||
{
|
||||
LGRECT work;
|
||||
if (w == NULL)
|
||||
return;
|
||||
if( w->root->toolbar->throbber.running == true )
|
||||
return;
|
||||
mt_CompGetLGrect(&app, w->root->toolbar->throbber.comp,
|
||||
WF_WORKXYWH, &work);
|
||||
w->root->toolbar->throbber.running = true;
|
||||
w->root->toolbar->throbber.index = THROBBER_MIN_INDEX;
|
||||
schedule(50, throbber_advance, w );
|
||||
schedule(100, throbber_advance, w );
|
||||
ApplWrite( _AESapid, WM_REDRAW, w->root->handle->handle,
|
||||
work.g_x, work.g_y, work.g_w, work.g_h );
|
||||
}
|
||||
|
@ -502,7 +504,12 @@ void gui_window_stop_throbber(struct gui_window *w)
|
|||
{
|
||||
LGRECT work;
|
||||
if (w == NULL)
|
||||
return;
|
||||
return;
|
||||
if( w->root->toolbar->throbber.running == false )
|
||||
return;
|
||||
|
||||
schedule_remove(throbber_advance, w);
|
||||
|
||||
mt_CompGetLGrect(&app, w->root->toolbar->throbber.comp,
|
||||
WF_WORKXYWH, &work);
|
||||
w->root->toolbar->throbber.running = false;
|
||||
|
|
Loading…
Reference in New Issue