diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-11 22:34:12 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-01-11 22:34:12 +0000 |
commit | c8496df3df7d059528f2d5e735be5c55bfa75ef6 (patch) | |
tree | 7979e63f7e548c7a9d6bb024afde7b1bc785ff44 /desktop/gui_factory.c | |
parent | d3c392c3d3b516f05fbf71020b2f6774ce20ce8c (diff) | |
download | netsurf-c8496df3df7d059528f2d5e735be5c55bfa75ef6.tar.gz netsurf-c8496df3df7d059528f2d5e735be5c55bfa75ef6.tar.bz2 |
move window creation and destruction into table
Diffstat (limited to 'desktop/gui_factory.c')
-rw-r--r-- | desktop/gui_factory.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c index fe7536353..9a4fa396a 100644 --- a/desktop/gui_factory.c +++ b/desktop/gui_factory.c @@ -16,11 +16,18 @@ nserror gui_factory_register(struct gui_table *gt) return NSERROR_INIT_FAILED; } - /* check the mandantory fields are set */ + /* check the mandantory fields are set */ if (gt->poll == NULL) { return NSERROR_BAD_PARAMETER; } + if (gt->window_create == NULL) { + return NSERROR_BAD_PARAMETER; + } + if (gt->window_destroy == NULL) { + return NSERROR_BAD_PARAMETER; + } + /* fill in the optional entries with defaults */ if (gt->quit == NULL) { |