summaryrefslogtreecommitdiff
path: root/render/textplain.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-05-09 15:32:34 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-05-09 15:32:34 +0000
commit83f9e707eba500d39c12b8078948b932706cdab2 (patch)
treec904e2c3daa1b70f86d6d5d1d9ae5533d3a44d0f /render/textplain.c
parent0929aa897b73bb5a028c732a0867a7f093f92629 (diff)
downloadnetsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.gz
netsurf-83f9e707eba500d39c12b8078948b932706cdab2.tar.bz2
refactor content handler initilisation to use named initialisors
svn path=/trunk/netsurf/; revision=12341
Diffstat (limited to 'render/textplain.c')
-rw-r--r--render/textplain.c26
1 files changed, 11 insertions, 15 deletions
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;