Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 918438 Details for
Bug 1119719
evolution killed by SIGABRT
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
backported patch
evo-test-1119719.patch (text/plain), 4.86 KB, created by
Milan Crha
on 2014-07-16 14:23:12 UTC
(
hide
)
Description:
backported patch
Filename:
MIME Type:
Creator:
Milan Crha
Created:
2014-07-16 14:23:12 UTC
Size:
4.86 KB
patch
obsolete
>Index: em-format/e-mail-formatter-attachment-bar.c >=================================================================== >--- em-format/e-mail-formatter-attachment-bar.c (revision 7) >+++ em-format/e-mail-formatter-attachment-bar.c (working copy) >@@ -89,11 +89,11 @@ emfe_attachment_bar_get_widget (EMailFormatterExte > g_return_val_if_fail (E_MAIL_PART_IS (part, EMailPartAttachmentBar), NULL); > > empab = (EMailPartAttachmentBar *) part; >- widget = e_attachment_bar_new (empab->store); >- g_object_set_data (G_OBJECT (empab->store), "attachment-bar", widget); >+ widget = e_attachment_bar_new (e_mail_part_attachment_bar_get_store (empab)); >+ g_object_set_data (G_OBJECT (e_mail_part_attachment_bar_get_store (empab)), "attachment-bar", widget); > g_object_weak_ref ( > G_OBJECT (widget), >- (GWeakNotify) unset_bar_from_store_data, empab->store); >+ (GWeakNotify) unset_bar_from_store_data, e_mail_part_attachment_bar_get_store (empab)); > > return widget; > } >Index: em-format/e-mail-formatter-attachment.c >=================================================================== >--- em-format/e-mail-formatter-attachment.c (revision 7) >+++ em-format/e-mail-formatter-attachment.c (working copy) >@@ -94,7 +94,7 @@ find_attachment_store (EMailPartList *part_list, > g_free (tmp); > > if (part != NULL) >- store = ((EMailPartAttachmentBar *) part)->store; >+ store = e_mail_part_attachment_bar_get_store ((EMailPartAttachmentBar *) part); > > while (!g_queue_is_empty (&queue)) > e_mail_part_unref (g_queue_pop_head (&queue)); >Index: em-format/e-mail-parser-attachment-bar.c >=================================================================== >--- em-format/e-mail-parser-attachment-bar.c (revision 7) >+++ em-format/e-mail-parser-attachment-bar.c (working copy) >@@ -28,14 +28,42 @@ > > #include "e-mail-parser-extension.h" > >+struct _EMailPartAttachmentBarPrivate >+{ >+ EAttachmentStore *store; >+}; >+ > static void > mail_part_attachment_bar_free (EMailPart *part) > { > EMailPartAttachmentBar *empab = (EMailPartAttachmentBar *) part; > >- g_clear_object (&empab->store); >+ if (empab->priv) { >+ g_clear_object (&empab->priv->store); >+ g_free (empab->priv); >+ empab->priv = NULL; >+ } > } > >+EAttachmentStore * >+e_mail_part_attachment_bar_get_store (EMailPartAttachmentBar *empab) >+{ >+ g_return_val_if_fail (empab != NULL, NULL); >+ g_return_val_if_fail (empab->priv != NULL, NULL); >+ >+ if (!empab->priv->store) { >+ /* Create the store only on demand. The EMailParser runs in a dedicated >+ thread, but the EAttachmentStore is a GtkWidget descendant, which should >+ be manipulated only from the main/UI thread, thus postpone its creating >+ until it's really needed, which might be during the EMailFormatter run, >+ which runs from the main/UI thread. */ >+ >+ empab->priv->store = E_ATTACHMENT_STORE (e_attachment_store_new ()); >+ } >+ >+ return empab->priv->store; >+} >+ > /******************************************************************************/ > > typedef EMailParserExtension EMailParserAttachmentBar; >@@ -70,7 +98,7 @@ empe_attachment_bar_parse (EMailParserExtension *e > part, part_id->str, sizeof (EMailPartAttachmentBar), > (GFreeFunc) mail_part_attachment_bar_free); > empab->parent.mime_type = g_strdup ("application/vnd.evolution.widget.attachment-bar"); >- empab->store = E_ATTACHMENT_STORE (e_attachment_store_new ()); >+ empab->priv = g_new0 (EMailPartAttachmentBarPrivate, 1); > g_string_truncate (part_id, len); > > g_queue_push_tail (out_mail_parts, empab); >Index: em-format/e-mail-part-attachment-bar.h >=================================================================== >--- em-format/e-mail-part-attachment-bar.h (revision 7) >+++ em-format/e-mail-part-attachment-bar.h (working copy) >@@ -23,10 +23,14 @@ > > #include <em-format/e-mail-part.h> > >+typedef struct _EMailPartAttachmentBarPrivate EMailPartAttachmentBarPrivate; >+ > typedef struct _EMailPartAttachmentBar { > EMailPart parent; > >- EAttachmentStore *store; >+ EMailPartAttachmentBarPrivate *priv; > } EMailPartAttachmentBar; > >+EAttachmentStore *e_mail_part_attachment_bar_get_store (EMailPartAttachmentBar *empab); >+ > #endif /* E_MAIL_PART_ATTACHMENT_BAR_H */ >Index: mail/e-mail-request.c >=================================================================== >--- mail/e-mail-request.c (revision 7) >+++ mail/e-mail-request.c (working copy) >@@ -364,9 +364,12 @@ mail_request_send_async (SoupRequest *request, > simple, handle_contact_photo_request, > G_PRIORITY_DEFAULT, cancellable); > } else { >- g_simple_async_result_run_in_thread ( >- simple, handle_mail_request, >- G_PRIORITY_DEFAULT, cancellable); >+ /* Process e-mail mail requests in this thread, which should be >+ the main/UI thread, because any EMailFormatter can create >+ GtkWidget-s, or manipulate with them, which should be always >+ done in the main/UI thread. */ >+ handle_mail_request (simple, G_OBJECT (request), cancellable); >+ g_simple_async_result_complete_in_idle (simple); > } > > g_object_unref (simple);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1119719
:
918130
|
918131
|
918132
|
918133
|
918134
|
918135
|
918136
|
918137
|
918138
|
918139
|
918140
|
918141
| 918438