Author: mono
Date: Wed Jan 25 16:44:00 2012
New Revision: 13408
URL:
http://source.netsurf-browser.org?rev=13408&view=rev
Log:
Default to "not rendering" when setting GUI poll priority.
Modified:
trunk/netsurf/atari/gui.c
Modified: trunk/netsurf/atari/gui.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/atari/gui.c?rev=13408&...
==============================================================================
--- trunk/netsurf/atari/gui.c (original)
+++ trunk/netsurf/atari/gui.c Wed Jan 25 16:44:00 2012
@@ -271,29 +271,23 @@
* set the status bar message
*/
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");
- 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)) {
- rendering = true;
- }
- }
+{
+ 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 );