summaryrefslogtreecommitdiff
path: root/atari/gui.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-04-25 21:33:01 +0000
committerOle Loots <ole@monochrom.net>2012-04-25 21:33:01 +0000
commitf804cff67bf1a8f6877eb95a5e1eaaae1b2e4146 (patch)
tree3750fad915032a9b447782a0b5dba9076243fa3d /atari/gui.c
parentea411f6c34a31a189ba215cd7274cd677aff86b9 (diff)
downloadnetsurf-f804cff67bf1a8f6877eb95a5e1eaaae1b2e4146.tar.gz
netsurf-f804cff67bf1a8f6877eb95a5e1eaaae1b2e4146.tar.bz2
set rendering flag within throbber_stop / start functions, update toolbar buttons on throbber stop.
svn path=/trunk/netsurf/; revision=13890
Diffstat (limited to 'atari/gui.c')
-rwxr-xr-xatari/gui.c30
1 files changed, 11 insertions, 19 deletions
diff --git a/atari/gui.c b/atari/gui.c
index c39b5a75f..0bfaa326b 100755
--- a/atari/gui.c
+++ b/atari/gui.c
@@ -115,7 +115,7 @@ void gui_poll(bool active)
evnt.timer = 0;
flags |= MU_TIMER;
EvntWindom( flags );
- next_poll = clock() + (CLOCKS_PER_SEC>>2);
+ next_poll = clock() + (CLOCKS_PER_SEC>>3);
}
} else {
if( input_window != NULL ){
@@ -270,23 +270,7 @@ void gui_window_set_title(struct gui_window *gw, const char *title)
* set the status bar message
*/
void gui_window_set_status(struct gui_window *w, const char *text)
-{
- static char * msg_loading = NULL;
- static char * msg_fetch = NULL;
-
- if( msg_loading == NULL ){
- msg_loading = messages_get("Loading");
- msg_fetch = messages_get("Fetch");
- }
-
- if( (strncmp(msg_loading, text, 4) == 0)
- ||
- (strncmp(msg_fetch, text, 4)) == 0 ) {
- rendering = true;
- } else {
- rendering = false;
- }
-
+{
if (w == NULL || text == NULL )
return;
window_set_stauts( w , (char*)text );
@@ -505,6 +489,8 @@ void gui_window_start_throbber(struct gui_window *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 );
+
+ rendering = true;
}
void gui_window_stop_throbber(struct gui_window *w)
@@ -517,11 +503,17 @@ void gui_window_stop_throbber(struct gui_window *w)
schedule_remove(throbber_advance, w);
+ /* refresh toolbar buttons: */
+ tb_update_buttons( w, -1 );
+
+ /* redraw throbber: */
mt_CompGetLGrect(&app, w->root->toolbar->throbber.comp,
WF_WORKXYWH, &work);
- w->root->toolbar->throbber.running = false;
+ w->root->toolbar->throbber.running = false;
ApplWrite( _AESapid, WM_REDRAW, w->root->handle->handle,
work.g_x, work.g_y, work.g_w, work.g_h );
+
+ rendering = false;
}
/* Place caret in window */