aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-02 03:02:10 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-02 03:02:10 +0800
commit221856a80b5021398c6248f706b32e56c70c7ae6 (patch)
treef6a6e40006a7e5d3a03a0b43b0c0dc7dfeb99a11 /mail/folder-browser.c
parent6b4e29c7e6e71fbf146ddcdbbd58ac13617285d2 (diff)
downloadgsoc2013-evolution-221856a80b5021398c6248f706b32e56c70c7ae6.tar
gsoc2013-evolution-221856a80b5021398c6248f706b32e56c70c7ae6.tar.gz
gsoc2013-evolution-221856a80b5021398c6248f706b32e56c70c7ae6.tar.bz2
gsoc2013-evolution-221856a80b5021398c6248f706b32e56c70c7ae6.tar.lz
gsoc2013-evolution-221856a80b5021398c6248f706b32e56c70c7ae6.tar.xz
gsoc2013-evolution-221856a80b5021398c6248f706b32e56c70c7ae6.tar.zst
gsoc2013-evolution-221856a80b5021398c6248f706b32e56c70c7ae6.zip
Do the Right Thing (tm) if the message list is not the widget in focus
2001-08-01 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (folder_browser_copy): Do the Right Thing (tm) if the message list is not the widget in focus (which is to copy the text selected in the html viewer instead). Fixes bug #5868. svn path=/trunk/; revision=11558
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 3d6b763265..b024b11324 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -27,6 +27,7 @@
#include <libgnomeui/gnome-dialog-util.h>
#include <gtkhtml/htmlengine.h>
+#include <gtkhtml/htmlengine-edit-cut-and-paste.h>
#include "filter/vfolder-rule.h"
#include "filter/vfolder-context.h"
@@ -621,6 +622,12 @@ folder_browser_copy (GtkWidget *menuitem, FolderBrowser *fb)
cut = menuitem == NULL;
+ if (!GTK_WIDGET_HAS_FOCUS (fb->message_list)) {
+ /* Copy text from the HTML Engine */
+ html_engine_copy (fb->mail_display->html->engine);
+ return;
+ }
+
if (fb->clipboard_selection) {
g_byte_array_free (fb->clipboard_selection, TRUE);
fb->clipboard_selection = NULL;