summaryrefslogtreecommitdiff
path: root/desktop/gui_factory.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-13 01:08:15 +0000
committerVincent Sanders <vince@kyllikki.org>2014-01-13 01:08:15 +0000
commit7227c29bbacbc796e9f549cf21e8bd978fde5114 (patch)
treeecd935b801f61ea1d69eea576fcaaf57e4bd909c /desktop/gui_factory.c
parent5a962586fb161651fc612ed8a8f6da99d8d22f65 (diff)
downloadnetsurf-7227c29bbacbc796e9f549cf21e8bd978fde5114.tar.gz
netsurf-7227c29bbacbc796e9f549cf21e8bd978fde5114.tar.bz2
move window scroll getter and setter into operations table
Diffstat (limited to 'desktop/gui_factory.c')
-rw-r--r--desktop/gui_factory.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c
index 9cf328557..a4cc1c9a9 100644
--- a/desktop/gui_factory.c
+++ b/desktop/gui_factory.c
@@ -52,7 +52,7 @@ static void gui_default_window_scroll_visible(struct gui_window *g,
int x0, int y0,
int x1, int y1)
{
- gui_window_set_scroll(g, x0, y0);
+ guit->window->set_scroll(g, x0, y0);
}
static void gui_default_window_new_content(struct gui_window *g)
@@ -86,6 +86,12 @@ static nserror verify_window_register(struct gui_window_table *gwt)
if (gwt->update == NULL) {
return NSERROR_BAD_PARAMETER;
}
+ if (gwt->get_scroll == NULL) {
+ return NSERROR_BAD_PARAMETER;
+ }
+ if (gwt->set_scroll == NULL) {
+ return NSERROR_BAD_PARAMETER;
+ }
/* fill in the optional entries with defaults */
if (gwt->set_title == NULL) {