aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-view.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-04-14 16:25:43 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-04-14 16:25:43 +0800
commit2864da8135dfd208bb5a4cc3d51cbcc006cf0586 (patch)
tree23112dcd594ec08c62d6ff3f63228fa14dd75891 /mail/em-folder-view.c
parent8bdc418acddf276242c2419dfeaa1c9d83262dd6 (diff)
downloadgsoc2013-evolution-2864da8135dfd208bb5a4cc3d51cbcc006cf0586.tar
gsoc2013-evolution-2864da8135dfd208bb5a4cc3d51cbcc006cf0586.tar.gz
gsoc2013-evolution-2864da8135dfd208bb5a4cc3d51cbcc006cf0586.tar.bz2
gsoc2013-evolution-2864da8135dfd208bb5a4cc3d51cbcc006cf0586.tar.lz
gsoc2013-evolution-2864da8135dfd208bb5a4cc3d51cbcc006cf0586.tar.xz
gsoc2013-evolution-2864da8135dfd208bb5a4cc3d51cbcc006cf0586.tar.zst
gsoc2013-evolution-2864da8135dfd208bb5a4cc3d51cbcc006cf0586.zip
** See bug #56149.
2004-04-14 Not Zed <NotZed@Ximian.com> ** See bug #56149. * em-folder-view.c (emfv_edit_cut): similar to below, use focus to determine who we select from. (emfv_edit_copy): ditto. * message-list.c: Remove primary selection stuff. It just annoys. * em-folder-browser.c (emfb_edit_copy): use focus rather than selection owner to determine who to copy from. (emfb_edit_cut): similarly. svn path=/trunk/; revision=25455
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r--mail/em-folder-view.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index f87aee7f8e..83523b0782 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -954,10 +954,10 @@ emfv_edit_cut(BonoboUIComponent *uid, void *data, const char *path)
{
EMFolderView *emfv = data;
- if (message_list_has_primary_selection(emfv->list))
- message_list_copy(emfv->list, TRUE);
- else if (emfv->preview_active)
+ if (GTK_WIDGET_HAS_FOCUS(emfv->preview->formathtml.html))
em_format_html_display_cut(emfv->preview);
+ else
+ message_list_copy(emfv->list, TRUE);
}
static void
@@ -965,10 +965,10 @@ emfv_edit_copy(BonoboUIComponent *uid, void *data, const char *path)
{
EMFolderView *emfv = data;
- if (message_list_has_primary_selection(emfv->list))
- message_list_copy(emfv->list, FALSE);
- else if (emfv->preview_active)
+ if (GTK_WIDGET_HAS_FOCUS(emfv->preview->formathtml.html))
em_format_html_display_copy(emfv->preview);
+ else
+ message_list_copy(emfv->list, FALSE);
}
static void