From 83f9e707eba500d39c12b8078948b932706cdab2 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 9 May 2011 15:32:34 +0000 Subject: refactor content handler initilisation to use named initialisors svn path=/trunk/netsurf/; revision=12341 --- amiga/dt_picture.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'amiga/dt_picture.c') diff --git a/amiga/dt_picture.c b/amiga/dt_picture.c index c3828d8f5..6866545f5 100644 --- a/amiga/dt_picture.c +++ b/amiga/dt_picture.c @@ -61,21 +61,13 @@ static nserror amiga_dt_picture_clone(const struct content *old, struct content static content_type amiga_dt_picture_content_type(lwc_string *mime_type); static const content_handler amiga_dt_picture_content_handler = { - amiga_dt_picture_create, - NULL, - amiga_dt_picture_convert, - NULL, - amiga_dt_picture_destroy, - NULL, - NULL, - NULL, - amiga_dt_picture_redraw, - NULL, - NULL, - amiga_dt_picture_clone, - NULL, - amiga_dt_picture_content_type, - false + .create = amiga_dt_picture_create, + .data_complete = amiga_dt_picture_convert, + .destroy = amiga_dt_picture_destroy, + .redraw = amiga_dt_picture_redraw, + .clone = amiga_dt_picture_clone, + .type = amiga_dt_picture_content_type, + .no_share = false, }; nserror amiga_dt_picture_init_from_mime(void) -- cgit v1.2.3