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 /gtk | |
parent | 4b49b4ac775a1e3ca0c59f390f3f2427e31bce2b (diff) | |
download | netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.gz netsurf-5a962586fb161651fc612ed8a8f6da99d8d22f65.tar.bz2 |
move mandantory window update and redraw operations into table
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/window.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/window.c b/gtk/window.c index 7f3db864a..0ea67edb9 100644 --- a/gtk/window.c +++ b/gtk/window.c @@ -919,12 +919,12 @@ void gui_window_remove_caret(struct gui_window *g) } -void gui_window_redraw_window(struct gui_window *g) +static void gui_window_redraw_window(struct gui_window *g) { gtk_widget_queue_draw(GTK_WIDGET(g->layout)); } -void gui_window_update_box(struct gui_window *g, const struct rect *rect) +static void gui_window_update_box(struct gui_window *g, const struct rect *rect) { int sx, sy; hlcache_handle *c = g->bw->current_content; @@ -1174,6 +1174,8 @@ void gui_file_gadget_open(struct gui_window *g, hlcache_handle *hl, 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_icon = gui_window_set_icon, |