[geary/wip/save-sent-713263: 9/12] Fix signalling to be in main thread
- From: Charles Lindsay <clindsay src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/save-sent-713263: 9/12] Fix signalling to be in main thread
- Date: Tue, 28 Jan 2014 21:43:16 +0000 (UTC)
commit 7d394cd7ee9cc3649b5a4af713bb320bd6177451
Author: Charles Lindsay <chaz yorba org>
Date: Tue Jan 28 12:58:06 2014 -0800
Fix signalling to be in main thread
.../conversation-viewer/conversation-viewer.vala | 3 +--
src/engine/imap-db/outbox/smtp-outbox-folder.vala | 16 ++++++++--------
2 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-viewer.vala
b/src/client/conversation-viewer/conversation-viewer.vala
index f820714..94375a9 100644
--- a/src/client/conversation-viewer/conversation-viewer.vala
+++ b/src/client/conversation-viewer/conversation-viewer.vala
@@ -972,8 +972,7 @@ public class ConversationViewer : Gtk.Box {
try {
WebKit.DOM.HTMLElement email_warning = Util.DOM.select(container, ".email_warning");
- WebKit.DOM.DOMTokenList class_list = email_warning.get_class_list();
- Util.DOM.toggle_class(class_list, "show", email.email_flags.is_outbox_sent());
+ Util.DOM.toggle_class(email_warning.get_class_list(), "show",
email.email_flags.is_outbox_sent());
if (email.email_flags.is_outbox_sent()) {
email_warning.set_inner_html(
_("This message was sent successfully, but could not be saved to %s.").printf(
diff --git a/src/engine/imap-db/outbox/smtp-outbox-folder.vala
b/src/engine/imap-db/outbox/smtp-outbox-folder.vala
index 8dc6dca..14ff018 100644
--- a/src/engine/imap-db/outbox/smtp-outbox-folder.vala
+++ b/src/engine/imap-db/outbox/smtp-outbox-folder.vala
@@ -519,16 +519,16 @@ private class Geary.SmtpOutboxFolder : Geary.AbstractLocalFolder, Geary.FolderSu
yield db.exec_transaction_async(Db.TransactionType.WR, (cx) => {
do_mark_email_as_sent(cx, outbox_id, cancellable);
- Geary.EmailFlags flags = new Geary.EmailFlags();
- flags.add(Geary.EmailFlags.OUTBOX_SENT);
-
- Gee.HashMap<Geary.EmailIdentifier, Geary.EmailFlags> changed_map
- = new Gee.HashMap<Geary.EmailIdentifier, Geary.EmailFlags>();
- changed_map.set(outbox_id, flags);
- notify_email_flags_changed(changed_map);
-
return Db.TransactionOutcome.COMMIT;
}, cancellable);
+
+ Geary.EmailFlags flags = new Geary.EmailFlags();
+ flags.add(Geary.EmailFlags.OUTBOX_SENT);
+
+ Gee.HashMap<Geary.EmailIdentifier, Geary.EmailFlags> changed_map
+ = new Gee.HashMap<Geary.EmailIdentifier, Geary.EmailFlags>();
+ changed_map.set(outbox_id, flags);
+ notify_email_flags_changed(changed_map);
}
public virtual async void remove_email_async(Gee.List<Geary.EmailIdentifier> email_ids,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]