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 /render/search.c | |
parent | 69cea38f41b411ca9e55db365cf94339f4be891c (diff) | |
download | netsurf-6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d.tar.gz netsurf-6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d.tar.bz2 |
remove all core usage of warn_user API
Diffstat (limited to 'render/search.c')
-rw-r--r-- | render/search.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/render/search.c b/render/search.c index b586ff55f..f5e231ab0 100644 --- a/render/search.c +++ b/render/search.c @@ -34,6 +34,7 @@ #include "content/hlcache.h" #include "desktop/selection.h" #include "desktop/gui_search.h" +#include "desktop/gui_misc.h" #include "desktop/gui_internal.h" #include "render/box.h" @@ -85,13 +86,13 @@ struct search_context * search_create_context(struct content *c, context = malloc(sizeof(struct search_context)); if (context == NULL) { - warn_user("NoMemory", 0); + guit->misc->warning("NoMemory", 0); return NULL; } search_head = malloc(sizeof(struct list_entry)); if (search_head == NULL) { - warn_user("NoMemory", 0); + guit->misc->warning("NoMemory", 0); free(context); return NULL; } @@ -282,7 +283,7 @@ static struct list_entry *add_entry(unsigned start_idx, unsigned end_idx, /* found string in box => add to list */ entry = calloc(1, sizeof(*entry)); if (!entry) { - warn_user("NoMemory", 0); + guit->misc->warning("NoMemory", 0); return NULL; } @@ -548,7 +549,7 @@ void search_step(struct search_context *context, search_flags_t flags, int i = 0; if (context == NULL) { - warn_user("SearchError", 0); + guit->misc->warning("SearchError", 0); return; } |