From 88055b58109712b7933386892a7b2ee75c538011 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 2 Aug 2012 15:09:31 +0100 Subject: Update to use selection_copy_to_clipboard, although this code is all commented out anyway. --- windows/gui.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'windows') diff --git a/windows/gui.c b/windows/gui.c index 8ad3b32a9..21e9d1743 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -1792,29 +1792,8 @@ bool gui_commit_clipboard(void) { return false; } -/* -static bool -gui_selection_traverse_handler(const char *text, - size_t length, - struct box *box, - void *handle, - const char *space_text, - size_t space_length) -{ - bool add_space = box != NULL ? box->space != 0 : false; - - if (space_text != NULL && space_length > 0) { - if (!gui_add_to_clipboard(space_text, space_length, false)) { - return false; - } - } - if (!gui_add_to_clipboard(text, length, add_space)) - return false; - return true; -} -*/ bool gui_copy_to_clipboard(struct selection *s) { if (selection_defined(s)) { @@ -1823,8 +1802,7 @@ bool gui_copy_to_clipboard(struct selection *s) /* OpenClipboard(s->bw->window->main); EmptyClipboard(); - if (selection_traverse(s, gui_selection_traverse_handler, - NULL)) { + if (selection_copy_to_clipboard(s)) { CloseClipboard(); return true; } -- cgit v1.2.3