From 9c918930289b18dbfd4bb44081891d5780105bfd Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 13 Jul 2011 13:20:26 +0000 Subject: 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 --- desktop/selection.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop/selection.h') 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); -- cgit v1.2.3