From cc3b9435ea05896e08aaabd3d5639fa430cc16b2 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 3 Aug 2012 18:19:54 +0100 Subject: Use core clipboard copy function. ami_selection_to_text() will need fixing as it still needs selection_traverse() --- amiga/clipboard.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'amiga/clipboard.c') 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(); -- cgit v1.2.3