diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/browser.c | 1 | ||||
-rw-r--r-- | desktop/gui.h | 2 | ||||
-rw-r--r-- | desktop/netsurf.c | 12 |
3 files changed, 5 insertions, 10 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 8f1bb9a0c..2c8c28441 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -260,6 +260,7 @@ void browser_window_callback(content_msg msg, struct content *c, case CONTENT_MSG_ERROR: browser_window_set_status(bw, data.error); + warn_user(data.error, 0); if (c == bw->loading_content) bw->loading_content = 0; else if (c == bw->current_content) diff --git a/desktop/gui.h b/desktop/gui.h index d7f98609d..f388f2d7d 100644 --- a/desktop/gui.h +++ b/desktop/gui.h @@ -62,6 +62,4 @@ void gui_window_place_caret(gui_window *g, int x, int y, int height); void gui_launch_url(const char *url); -void warn_user(const char *warning, const char *detail); - #endif diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 106a33193..21f01177e 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -54,6 +54,7 @@ void netsurf_init(int argc, char** argv) struct utsname utsname; stdout = stderr; + curl_memdebug("memdump"); if (uname(&utsname) != 0) LOG(("Failed to extract machine information\n")); else @@ -63,12 +64,6 @@ void netsurf_init(int argc, char** argv) fetch_init(); cache_init(); fetchcache_init(); -#ifdef WITH_PNG - nspng_init(); -#endif -#ifdef WITH_GIF - nsgif_init(); -#endif url_init(); } @@ -79,8 +74,9 @@ void netsurf_init(int argc, char** argv) void netsurf_poll(void) { - gui_poll(fetch_active); - fetch_poll(); + content_clean(); + gui_poll(fetch_active); + fetch_poll(); } |