summaryrefslogtreecommitdiff
path: root/amiga/clipboard.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-03 18:19:54 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-08-03 18:19:54 +0100
commitcc3b9435ea05896e08aaabd3d5639fa430cc16b2 (patch)
treee031b550ac298fb62d349a92ca62328e187507b7 /amiga/clipboard.c
parent18db6826f1cd7c73dd5108210783c3ef7cc0ab2f (diff)
downloadnetsurf-cc3b9435ea05896e08aaabd3d5639fa430cc16b2.tar.gz
netsurf-cc3b9435ea05896e08aaabd3d5639fa430cc16b2.tar.bz2
Use core clipboard copy function. ami_selection_to_text() will need fixing as it still needs selection_traverse()
Diffstat (limited to 'amiga/clipboard.c')
-rwxr-xr-xamiga/clipboard.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/amiga/clipboard.c b/amiga/clipboard.c
index d6f286796..49cee2dee 100755
--- a/amiga/clipboard.c
+++ b/amiga/clipboard.c
@@ -247,23 +247,6 @@ bool gui_commit_clipboard(void)
return true;
}
-bool ami_clipboard_copy(const char *text, size_t length, struct box *box,
- void *handle, const char *whitespace_text,size_t whitespace_length)
-{
- if (whitespace_text)
- {
- if(!ami_add_to_clipboard(whitespace_text,whitespace_length, false)) return false;
- }
-
- if(text)
- {
- bool add_space = box != NULL ? box->space != 0 : false;
-
- if (!ami_add_to_clipboard(text, length, add_space)) return false;
- }
- return true;
-}
-
bool gui_copy_to_clipboard(struct selection *s)
{
bool success;
@@ -271,7 +254,7 @@ bool gui_copy_to_clipboard(struct selection *s)
if(s->defined == false) return false;
if(!gui_empty_clipboard()) return false;
- success = selection_traverse(s, ami_clipboard_copy, NULL);
+ success = selection_copy_to_clipboard(s);
/* commit regardless, otherwise we leave the clipboard in an unusable state */
gui_commit_clipboard();