diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-01-12 23:50:54 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-01-12 23:50:54 +0000 |
commit | 5a962586fb161651fc612ed8a8f6da99d8d22f65 (patch) | |
tree | c31bb23578c4b60ec575952cd51e6bdbac6a28dc /monkey | |
parent | 4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b (diff) | |
download | netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.gz netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.bz2 |
move mandantory window update and redraw operations into table
Diffstat (limited to 'monkey')
-rw-r--r-- | monkey/browser.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/monkey/browser.c b/monkey/browser.c index 985174d82..33f302089 100644 --- a/monkey/browser.c +++ b/monkey/browser.c @@ -126,7 +126,7 @@ gui_window_set_title(struct gui_window *g, const char *title) fprintf(stdout, "WINDOW TITLE WIN %u STR %s\n", g->win_num, title); } -void +static void gui_window_redraw_window(struct gui_window *g) { fprintf(stdout, "WINDOW REDRAW WIN %u\n", g->win_num); @@ -174,7 +174,7 @@ gui_window_set_scroll(struct gui_window *g, int sx, int sy) fprintf(stdout, "WINDOW SET_SCROLL WIN %u X %d Y %d\n", g->win_num, sx, sy); } -void +static void gui_window_update_box(struct gui_window *g, const struct rect *rect) { fprintf(stdout, "WINDOW UPDATE_BOX WIN %u X %d Y %d WIDTH %d HEIGHT %d\n", @@ -566,6 +566,8 @@ monkey_window_handle_command(int argc, char **argv) static struct gui_window_table gui_window_table = { .create = gui_window_create, .destroy = gui_window_destroy, + .redraw = gui_window_redraw_window, + .update = gui_window_update_box, .set_title = gui_window_set_title, .set_url = gui_window_set_url, |