From 15fb63ba9a2f504041c5c1ee2e13c9fac029c81c Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Mon, 18 Feb 2013 23:08:05 +0100 Subject: [PATCH] Harmonized ststus texts and and added status on wrong MIME type. --- apps/webbrowser/www.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/webbrowser/www.c b/apps/webbrowser/www.c index 279f882bc..1b8b27ea3 100644 --- a/apps/webbrowser/www.c +++ b/apps/webbrowser/www.c @@ -325,7 +325,7 @@ open_url(void) /* The hostname we present in the hostname table, so we send out the initial GET request. */ if(webclient_get(host, 80, file) == 0) { - show_statustext("Out of memory error."); + show_statustext("Out of memory error"); } else { show_statustext("Connecting..."); } @@ -534,7 +534,7 @@ PROCESS_THREAD(www_process, ev, data) resolv_lookup((char *)data) != NULL) { open_url(); } else { - show_statustext("Host not found."); + show_statustext("Host not found"); } #endif /* UIP_UDP */ } else if(ev == ctk_signal_window_close || @@ -602,7 +602,7 @@ webclient_timedout(void) void webclient_closed(void) { - show_statustext("Stopped."); + show_statustext("Stopped"); petsciiconv_topetscii(webpageptr - x, x); CTK_WIDGET_FOCUS(&mainwindow, &downbutton); redraw_window(); @@ -644,6 +644,7 @@ webclient_datahandler(char *data, uint16_t len) htmlparser_parse(data, len); redraw_window(); } else { + show_statustext("Cannot display web page"); uip_abort(); #if WWW_CONF_WITH_WGET ctk_dialog_open(&wgetdialog); @@ -656,7 +657,7 @@ webclient_datahandler(char *data, uint16_t len) if(data == NULL) { loading = 0; - show_statustext("Done."); + show_statustext("Done"); petsciiconv_topetscii(webpageptr - x, x); CTK_WIDGET_FOCUS(&mainwindow, &urlentry); redraw_window();