summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/html.c29
-rw-r--r--render/textplain.c26
2 files changed, 25 insertions, 30 deletions
diff --git a/render/html.c b/render/html.c
index dd29d2c54..84f0bab40 100644
--- a/render/html.c
+++ b/render/html.c
@@ -102,21 +102,20 @@ static void html_dump_frameset(struct content_html_frames *frame,
#endif
static const content_handler html_content_handler = {
- html_create,
- html_process_data,
- html_convert,
- html_reformat,
- html_destroy,
- html_stop,
- html_mouse_track,
- html_mouse_action,
- html_redraw,
- html_open,
- html_close,
- html_clone,
- NULL,
- html_content_type,
- true
+ .create = html_create,
+ .process_data = html_process_data,
+ .data_complete = html_convert,
+ .reformat = html_reformat,
+ .destroy = html_destroy,
+ .stop = html_stop,
+ .mouse_track = html_mouse_track,
+ .mouse_action = html_mouse_action,
+ .redraw = html_redraw,
+ .open = html_open,
+ .close = html_close,
+ .clone = html_clone,
+ .type = html_content_type,
+ .no_share = true,
};
static const char empty_document[] =
diff --git a/render/textplain.c b/render/textplain.c
index 6ec2f2521..f498869de 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -121,21 +121,17 @@ static int textplain_coord_from_offset(const char *text, size_t offset,
static float textplain_line_height(void);
static const content_handler textplain_content_handler = {
- textplain_create,
- textplain_process_data,
- textplain_convert,
- textplain_reformat,
- textplain_destroy,
- NULL,
- textplain_mouse_track,
- textplain_mouse_action,
- textplain_redraw,
- NULL,
- NULL,
- textplain_clone,
- NULL,
- textplain_content_type,
- true
+ .create = textplain_create,
+ .process_data = textplain_process_data,
+ .data_complete = textplain_convert,
+ .reformat = textplain_reformat,
+ .destroy = textplain_destroy,
+ .mouse_track = textplain_mouse_track,
+ .mouse_action = textplain_mouse_action,
+ .redraw = textplain_redraw,
+ .clone = textplain_clone,
+ .type = textplain_content_type,
+ .no_share = true,
};
static lwc_string *textplain_mime_type;