diff options
author | Not Zed <NotZed@Ximian.com> | 2005-08-04 10:53:35 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2005-08-04 10:53:35 +0800 |
commit | d8bcbaea79d34204025c74b2582092cf6cef7246 (patch) | |
tree | 48858f609991763277d7aeeee9e843e18cd5082d /mail/em-folder-view.c | |
parent | 2cee1f235d2313a08b7ddc8688c8d860905605dd (diff) | |
download | gsoc2013-evolution-d8bcbaea79d34204025c74b2582092cf6cef7246.tar.gz gsoc2013-evolution-d8bcbaea79d34204025c74b2582092cf6cef7246.tar.zst gsoc2013-evolution-d8bcbaea79d34204025c74b2582092cf6cef7246.zip |
not here.
2005-08-03 Not Zed <NotZed@Ximian.com>
* em-folder-browser.c (emfb_set_folder): not here.
* em-folder-view.c (emfv_set_folder): ref the folder here.
2005-08-03 Not Zed <NotZed@Ximian.com>
* em-folder-view.c (emfv_message_reply): try to fix #309647, only
act if the selection is actually active.
svn path=/trunk/; revision=29976
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r-- | mail/em-folder-view.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c index 8eb51b198f..aca5858afb 100644 --- a/mail/em-folder-view.c +++ b/mail/em-folder-view.c @@ -603,6 +603,7 @@ emfv_set_folder(EMFolderView *emfv, CamelFolder *folder, const char *uri) /* We need to set this up to get the right view options for the message-list, * even if we're not showing it */ emfv_setup_view_instance(emfv); + camel_object_ref(folder); } emfv_enable_menus(emfv); @@ -1388,7 +1389,7 @@ emfv_message_post_reply (BonoboUIComponent *uic, void *data, const char *path) static void emfv_message_reply(EMFolderView *emfv, int mode) { - char *selection_string; + char *html; guint len; if (emfv->list->cursor_uid == NULL) @@ -1397,8 +1398,9 @@ emfv_message_reply(EMFolderView *emfv, int mode) if (!em_utils_check_user_can_send_mail ((GtkWidget *) emfv)) return; - selection_string = gtk_html_get_selection_html (((EMFormatHTML *)emfv->preview)->html, &len); - if (selection_string && len) { + if (gtk_html_command(((EMFormatHTML *)emfv->preview)->html, "is-selection-active") + && (html = gtk_html_get_selection_html (((EMFormatHTML *)emfv->preview)->html, &len)) + && len) { CamelMimeMessage *msg, *src; struct _camel_header_raw *header; @@ -1414,7 +1416,7 @@ emfv_message_reply(EMFolderView *emfv, int mode) } camel_mime_part_set_encoding((CamelMimePart *)msg, CAMEL_TRANSFER_ENCODING_8BIT); camel_mime_part_set_content((CamelMimePart *)msg, - selection_string, len, "text/html"); + html, len, "text/html"); em_utils_reply_to_message (emfv->folder, emfv->list->cursor_uid, msg, mode, NULL); camel_object_unref(msg); } else { |