diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-04-26 12:50:16 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-04-26 12:50:16 +0100 |
commit | 6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d (patch) | |
tree | d11c9bcad0cc76d8c1b8950e52066d694c1dab84 /desktop/hotlist.c | |
parent | 69cea38f41b411ca9e55db365cf94339f4be891c (diff) | |
download | netsurf-6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d.tar.gz netsurf-6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d.tar.bz2 |
remove all core usage of warn_user API
Diffstat (limited to 'desktop/hotlist.c')
-rw-r--r-- | desktop/hotlist.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c index e6e11e4ba..98d5f9c19 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -25,16 +25,19 @@ #include <dom/dom.h> #include <dom/bindings/hubbub/parser.h> -#include "content/urldb.h" -#include "desktop/hotlist.h" -#include "desktop/treeview.h" -#include "desktop/browser.h" #include "utils/corestrings.h" #include "utils/messages.h" #include "utils/utils.h" #include "utils/utf8.h" #include "utils/libdom.h" #include "utils/log.h" +#include "content/urldb.h" + +#include "desktop/gui_misc.h" +#include "desktop/gui_internal.h" +#include "desktop/hotlist.h" +#include "desktop/treeview.h" +#include "desktop/browser.h" #define N_DAYS 28 #define N_SEC_PER_DAY (60 * 60 * 24) @@ -799,7 +802,7 @@ static nserror hotlist_load(const char *path, bool *loaded) corestring_lwc_html); if (html == NULL) { dom_node_unref(document); - warn_user("TreeLoadError", "(<html> not found)"); + guit->misc->warning("TreeLoadError", "(<html> not found)"); return NSERROR_OK; } @@ -808,7 +811,7 @@ static nserror hotlist_load(const char *path, bool *loaded) if (body == NULL) { dom_node_unref(html); dom_node_unref(document); - warn_user("TreeLoadError", "(<html>...<body> not found)"); + guit->misc->warning("TreeLoadError", "(<html>...<body> not found)"); return NSERROR_OK; } @@ -818,7 +821,7 @@ static nserror hotlist_load(const char *path, bool *loaded) dom_node_unref(body); dom_node_unref(html); dom_node_unref(document); - warn_user("TreeLoadError", + guit->misc->warning("TreeLoadError", "(<html>...<body>...<ul> not found.)"); return NSERROR_OK; } @@ -843,7 +846,7 @@ static nserror hotlist_load(const char *path, bool *loaded) dom_node_unref(document); if (err != NSERROR_OK) { - warn_user("TreeLoadError", "(Failed building tree.)"); + guit->misc->warning("TreeLoadError", "(Failed building tree.)"); return NSERROR_OK; } |