summaryrefslogtreecommitdiff
path: root/render/box.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-26 12:50:16 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-26 12:50:16 +0100
commit6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d (patch)
treed11c9bcad0cc76d8c1b8950e52066d694c1dab84 /render/box.c
parent69cea38f41b411ca9e55db365cf94339f4be891c (diff)
downloadnetsurf-6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d.tar.gz
netsurf-6a36d4ec2b6fd8ac52da2c3883b4776aec14ba2d.tar.bz2
remove all core usage of warn_user API
Diffstat (limited to 'render/box.c')
-rw-r--r--render/box.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/render/box.c b/render/box.c
index 5a0735e24..bb1800b00 100644
--- a/render/box.c
+++ b/render/box.c
@@ -28,19 +28,23 @@
#include <stdio.h>
#include <string.h>
#include <dom/dom.h>
+
+#include "utils/nsoption.h"
+#include "utils/log.h"
+#include "utils/talloc.h"
+#include "utils/utils.h"
#include "content/content_protected.h"
#include "content/hlcache.h"
#include "css/css.h"
#include "css/utils.h"
#include "css/dump.h"
#include "desktop/scrollbar.h"
-#include "utils/nsoption.h"
+#include "desktop/gui_misc.h"
+#include "desktop/gui_internal.h"
+
#include "render/box.h"
#include "render/form_internal.h"
#include "render/html_internal.h"
-#include "utils/log.h"
-#include "utils/talloc.h"
-#include "utils/utils.h"
#define box_is_float(box) (box->type == BOX_FLOAT_LEFT || \
box->type == BOX_FLOAT_RIGHT)
@@ -1146,7 +1150,7 @@ bool box_handle_scrollbars(struct content *c, struct box *box,
data = malloc(sizeof(struct html_scrollbar_data));
if (data == NULL) {
LOG("malloc failed");
- warn_user("NoMemory", 0);
+ guit->misc->warning("NoMemory", 0);
return false;
}
data->c = c;
@@ -1167,7 +1171,7 @@ bool box_handle_scrollbars(struct content *c, struct box *box,
data = malloc(sizeof(struct html_scrollbar_data));
if (data == NULL) {
LOG("malloc failed");
- warn_user("NoMemory", 0);
+ guit->misc->warning("NoMemory", 0);
return false;
}
data->c = c;