From 71cb70065e6819c26f101ff11e34c10383487b30 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 17 Feb 2014 14:38:53 +0000 Subject: Gadgets can exisit outside forms, so now they store their own ref to the containing html content. --- render/form.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'render/form.h') diff --git a/render/form.h b/render/form.h index 21829b9c5..f072b801e 100644 --- a/render/form.h +++ b/render/form.h @@ -46,7 +46,6 @@ typedef enum { /** HTML form. */ struct form { - struct html_content *html; /**< HTML content containing form */ void *node; /**< Corresponding DOM node */ char *action; /**< Absolute URL to submit to. */ @@ -78,13 +77,13 @@ typedef enum { /** Data for textarea */ struct form_textarea_data { - struct html_content *html; struct form_control *gadget; }; /** Form control. */ struct form_control { void *node; /**< Corresponding DOM node */ + struct html_content *html; /**< HTML content containing control */ form_control_type type; /**< Type of control */ @@ -157,7 +156,6 @@ typedef void(*select_menu_redraw_callback)(void *client_data, struct form *form_new(void *node, const char *action, const char *target, form_method method, const char *charset, const char *doc_charset); -void form_set_html_content(struct form *f, struct html_content *html); void form_free(struct form *form); struct form_control *form_new_control(void *node, form_control_type type); void form_add_control(struct form *form, struct form_control *control); -- cgit v1.2.3