From d0c5a88743b6e6964133405548a0833f410b6979 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 24 May 2010 09:34:00 +0200 Subject: [PATCH] Add html target to output viewer clipboard --- src/ui/gui/psppire-output-window.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ui/gui/psppire-output-window.c b/src/ui/gui/psppire-output-window.c index 3107547b..f2580b7b 100644 --- a/src/ui/gui/psppire-output-window.c +++ b/src/ui/gui/psppire-output-window.c @@ -624,6 +624,10 @@ clipboard_get_cb (GtkClipboard *clipboard, string_map_insert (&options, "format", "txt"); break; + case SELECT_FMT_HTML: + string_map_insert (&options, "format", "html"); + break; + default: goto finish; break; @@ -647,7 +651,8 @@ clipboard_get_cb (GtkClipboard *clipboard, n = n->next; } - driver->class->flush (driver); + if ( driver->class->flush) + driver->class->flush (driver); if ( g_file_get_contents (filename, &text, &length, NULL) ) { @@ -683,9 +688,7 @@ static const GtkTargetEntry targets[] = { { "UTF8_STRING", 0, SELECT_FMT_UTF8 }, { "text/plain;charset=utf-8", 0, SELECT_FMT_UTF8 }, - /* { "text/html", 0, SELECT_FMT_HTML } - */ }; static void -- 2.30.2