diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-13 13:20:26 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-13 13:20:26 +0000 |
commit | 9c918930289b18dbfd4bb44081891d5780105bfd (patch) | |
tree | 372de7dbf3d8393550e46ab1f8de6e9a97cf2140 /desktop/selection.h | |
parent | 1832155b7c64e0a977541930fc78f47bbd675ab2 (diff) | |
download | netsurf-9c918930289b18dbfd4bb44081891d5780105bfd.tar.gz netsurf-9c918930289b18dbfd4bb44081891d5780105bfd.tar.bz2 |
Fix selection for non-gui browser windows (iframes).
Selection no longer uses current_redraw_browser.
Fix long-standing selection bugs on platforms that use action on release behaviour.
svn path=/trunk/netsurf/; revision=12598
Diffstat (limited to 'desktop/selection.h')
-rw-r--r-- | desktop/selection.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/selection.h b/desktop/selection.h index 8dc3ce103..4b8bd8ec8 100644 --- a/desktop/selection.h +++ b/desktop/selection.h @@ -60,6 +60,7 @@ typedef bool (*seln_traverse_handler)(const char *text, size_t length, struct selection *selection_create(void); +void selection_prepare(struct selection *s); void selection_destroy(struct selection *s); void selection_init(struct selection *s, struct box *root); @@ -103,7 +104,8 @@ void selection_track(struct selection *s, browser_mouse_state mouse, bool selection_traverse(struct selection *s, seln_traverse_handler handler, void *handle); -bool selection_highlighted(struct selection *s, unsigned start, unsigned end, +bool selection_highlighted(const struct selection *s, + unsigned start, unsigned end, unsigned *start_idx, unsigned *end_idx); bool selection_save_text(struct selection *s, const char *path); |