summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-03-31 18:59:23 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2008-03-31 18:59:23 +0000
commit62ca5e3e11a10e42be5eb809138ce5f81d609771 (patch)
tree8157053b92fa12a9a66e8a29dc14b0099cb5f153 /riscos
parent5def4f5e0c8a3732c180cb6b5fbe908a803c05b6 (diff)
downloadnetsurf-62ca5e3e11a10e42be5eb809138ce5f81d609771.tar.gz
netsurf-62ca5e3e11a10e42be5eb809138ce5f81d609771.tar.bz2
Tidy up.
svn path=/trunk/netsurf/; revision=4064
Diffstat (limited to 'riscos')
-rw-r--r--riscos/textselection.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/riscos/textselection.c b/riscos/textselection.c
index 2638a36e9..d9d1916ca 100644
--- a/riscos/textselection.c
+++ b/riscos/textselection.c
@@ -61,7 +61,8 @@ static size_t clip_alloc = 0;
static size_t clip_length = 0;
static bool copy_handler(const char *text, size_t length, struct box *box,
- void *handle, const char *whitespace_text);
+ void *handle, const char *whitespace_text,
+ size_t whitespace_length);
static void ro_gui_discard_clipboard_contents(void);
static void ro_gui_dragging_bounced(wimp_message *message);
@@ -189,22 +190,24 @@ void ro_gui_selection_drag_end(struct gui_window *g, wimp_dragged *drag)
* Selection traversal routine for appending text to the current contents
* of the clipboard.
*
- * \param text pointer to text being added, or NULL for newline
- * \param length length of text to be appended (bytes)
- * \param box pointer to text box, or NULL if from textplain
- * \param handle unused handle, we don't need one
- * \param whitespace_text whitespace to place before text for formatting
- * may be NULL
+ * \param text pointer to text being added, or NULL for newline
+ * \param length length of text to be appended (bytes)
+ * \param box pointer to text box, or NULL if from textplain
+ * \param handle unused handle, we don't need one
+ * \param whitespace_text whitespace to place before text for formatting
+ * may be NULL
+ * \param whitespace_length length of whitespace_text
* \return true iff successful and traversal should continue
*/
bool copy_handler(const char *text, size_t length, struct box *box,
- void *handle, const char *whitespace_text)
+ void *handle, const char *whitespace_text,
+ size_t whitespace_length)
{
/* add any whitespace which precedes the text from this box */
if (whitespace_text) {
if (!gui_add_to_clipboard(whitespace_text,
- strlen(whitespace_text), false)) {
+ whitespace_length, false)) {
return false;
}
}