diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2014-01-13 14:51:27 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2014-01-13 14:51:27 +0000 |
commit | e82d83f1847ebc369a5f48a18217a8f5fecf3824 (patch) | |
tree | 2319e225f0c1cb9fec95d184e84d71b0eed93858 /desktop/textinput.c | |
parent | d70e371cd99d35859b0514884163447fa793738a (diff) | |
download | netsurf-e82d83f1847ebc369a5f48a18217a8f5fecf3824.tar.gz netsurf-e82d83f1847ebc369a5f48a18217a8f5fecf3824.tar.bz2 |
move four more optional window operations to table
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r-- | desktop/textinput.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c index e804829fa..95c321eaa 100644 --- a/desktop/textinput.c +++ b/desktop/textinput.c @@ -85,7 +85,7 @@ void browser_window_place_caret(struct browser_window *bw, int x, int y, /* TODO: intersect with bw viewport */ - gui_window_place_caret(root_bw->window, x, y, height * bw->scale, crp); + guit->window->place_caret(root_bw->window, x, y, height * bw->scale, crp); /* Set focus browser window */ root_bw->focus = bw; @@ -110,8 +110,9 @@ void browser_window_remove_caret(struct browser_window *bw, bool only_hide) else root_bw->can_edit = false; - if (root_bw->window) - gui_window_remove_caret(root_bw->window); + if (root_bw->window) { + guit->window->remove_caret(root_bw->window); + } } |