Default to "not rendering" when setting GUI poll priority.

svn path=/trunk/netsurf/; revision=13408
This commit is contained in:
Ole Loots 2012-01-25 22:44:00 +00:00
parent 2300b8adab
commit f3aa0a5179
1 changed files with 15 additions and 21 deletions

View File

@ -272,28 +272,22 @@ void gui_window_set_title(struct gui_window *gw, const char *title)
*/
void gui_window_set_status(struct gui_window *w, const char *text)
{
static char * msg_done = NULL;
static char * msg_loading = NULL;
static char * msg_fetch = NULL;
if( msg_done == NULL ){
msg_done = messages_get("Done");
if( msg_loading == NULL ){
msg_loading = messages_get("Loading");
msg_fetch = messages_get("Fetch");
}
if( strncmp(msg_done, text, 4) == 0 ){
rendering = false;
} else {
if( !rendering
&&
(
strncmp(msg_loading, text, 4) == 0 ||
strncmp(msg_fetch, text, 4) == 0)) {
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 );