summaryrefslogtreecommitdiff
path: root/desktop/gui_factory.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-12 23:50:54 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-12 23:50:54 +0000
commit5a962586fb161651fc612ed8a8f6da99d8d22f65 (patch)
treec31bb23578c4b60ec575952cd51e6bdbac6a28dc /desktop/gui_factory.c
parent4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b (diff)
downloadnetsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.gz
netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.bz2
move mandantory window update and redraw operations into table
Diffstat (limited to 'desktop/gui_factory.c')
-rw-r--r--desktop/gui_factory.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c
index 73fb016e4..9cf328557 100644
--- a/desktop/gui_factory.c
+++ b/desktop/gui_factory.c
@@ -80,6 +80,12 @@ static nserror verify_window_register(struct gui_window_table *gwt)
if (gwt->destroy == NULL) {
return NSERROR_BAD_PARAMETER;
}
+ if (gwt->redraw == NULL) {
+ return NSERROR_BAD_PARAMETER;
+ }
+ if (gwt->update == NULL) {
+ return NSERROR_BAD_PARAMETER;
+ }
/* fill in the optional entries with defaults */
if (gwt->set_title == NULL) {