diff options
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 7 |
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; |