aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.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-browser.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-browser.c')
-rw-r--r--mail/em-folder-browser.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index e09277a09a..38eece3e5d 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -489,10 +489,10 @@ emfb_edit_cut(BonoboUIComponent *uid, void *data, const char *path)
if (GTK_WIDGET_HAS_FOCUS(((ESearchBar *)emfb->search)->entry))
gtk_editable_cut_clipboard((GtkEditable *)((ESearchBar *)emfb->search)->entry);
- else if (message_list_has_primary_selection(emfb->view.list))
- message_list_copy(emfb->view.list, TRUE);
- else if (emfb->view.preview_active)
+ else if (GTK_WIDGET_HAS_FOCUS(emfb->view.preview->formathtml.html))
em_format_html_display_cut(emfb->view.preview);
+ else
+ message_list_copy(emfb->view.list, TRUE);
}
static void
@@ -502,10 +502,10 @@ emfb_edit_copy(BonoboUIComponent *uid, void *data, const char *path)
if (GTK_WIDGET_HAS_FOCUS(((ESearchBar *)emfb->search)->entry))
gtk_editable_copy_clipboard((GtkEditable *)((ESearchBar *)emfb->search)->entry);
- else if (message_list_has_primary_selection(emfb->view.list))
- message_list_copy(emfb->view.list, FALSE);
- else if (emfb->view.preview_active)
+ else if (GTK_WIDGET_HAS_FOCUS(emfb->view.preview->formathtml.html))
em_format_html_display_copy(emfb->view.preview);
+ else
+ message_list_copy(emfb->view.list, FALSE);
}
static void