From 0ffcfb91b5ea58105d28273871762e0efe758734 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 5 Sep 2011 10:31:21 +0000 Subject: Comment out broken copy selection to clipboard stuff and add a TODO. svn path=/trunk/netsurf/; revision=12727 --- windows/gui.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/windows/gui.c b/windows/gui.c index 4052c3dbc..e84611e42 100644 --- a/windows/gui.c +++ b/windows/gui.c @@ -1856,16 +1856,18 @@ gui_selection_traverse_handler(const char *text, bool gui_copy_to_clipboard(struct selection *s) { - if ((s->defined) && (s->bw != NULL) && (s->bw->window != NULL) && - (s->bw->window->main != NULL)) { - OpenClipboard(s->bw->window->main); + if (selection_defined(s)) { + /* TODO: Fix this, so it's not looking inside selection + * object */ + +/* OpenClipboard(s->bw->window->main); EmptyClipboard(); if (selection_traverse(s, gui_selection_traverse_handler, NULL)) { CloseClipboard(); return true; } - } +*/ } return false; } -- cgit v1.2.3